/* Notes of Visit Card Styles */

.notes-of-visit {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.logo-container {
    margin-bottom: 1.5rem;
    text-align: left;
}

.lingo-logo {
    height: 60px;
    width: auto;
}

.notes-header {
    margin-bottom: 2rem;
}

.notes-header h2 {
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.school-selection {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.school-selection label {
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.school-dropdown {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.school-dropdown:focus {
    outline: none;
    border-color: #ec5f59;
}

.loading-indicator {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ec5f59;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.note-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.note-card-content {
    padding: 1.5rem;
    cursor: pointer;
    flex: 1;
}

.note-card-content:hover {
    background: #f8f9fa;
}

.note-actions {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.note-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.note-title {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.visit-number {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.visit-date {
    font-size: 1rem;
    color: #666;
}

.rag-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    color: #333;
}

.note-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #666;
}

.note-creator {
    font-weight: 500;
}

.note-editor {
    font-style: italic;
}

.show-more-container {
    text-align: center;
    margin-top: 1rem;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.empty-state h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: #555;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
    color: #666;
    max-width: 400px;
    line-height: 1.5;
}

/* Button Styles */
.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
    font-weight: 500;
}

.btn-primary {
    background: #b8d4f1 !important;
    color: #1a3a5c !important;
}

.btn-primary:hover {
    background: #a8c4e8 !important;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #d4b8f1;
    color: #3a1a5c;
}

.btn-secondary:hover {
    background: #c4a8e1;
    transform: translateY(-2px);
}

.btn-pdf {
    background: #d4b8f1 !important;
    color: #3a1a5c !important;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-pdf:hover {
    background: #c4a8e1 !important;
    transform: translateY(-2px);
}

.btn-pdf:disabled {
    background: #f5f5f5 !important;
    color: #9e9e9e !important;
    border: 1px solid #e0e0e0;
    cursor: not-allowed;
    transform: none;
}

.btn-delete {
    background: #f1b8d4 !important;
    color: #5c1a3a !important;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-delete:hover {
    background: #e8a5c8 !important;
    transform: translateY(-2px);
}

.btn-delete:disabled {
    background: #f5f5f5 !important;
    color: #9e9e9e !important;
    border: 1px solid #e0e0e0;
    cursor: not-allowed;
    transform: none;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
    font-weight: 500;
}

.pdf-icon {
    font-size: 1.1em;
}

.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .school-selection {
        flex-direction: column;
        align-items: stretch;
    }

    .school-selection label {
        text-align: left;
    }

    .note-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .note-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .rag-badge {
        align-self: flex-start;
    }
}
