/* Staff Notes Modal Styles */
.staff-notes-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.staff-notes-modal.show {
    opacity: 1;
}

.staff-notes-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.staff-notes-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 12px 12px 0 0;
}

.staff-notes-modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.staff-notes-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.2s;
}

.staff-notes-modal-close:hover {
    color: #1f2937;
}

.staff-notes-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.staff-notes-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
}

.staff-notes-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.staff-notes-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.staff-notes-add {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

#staff-notes-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9375rem;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s;
}

#staff-notes-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-add-note {
    align-self: flex-end;
    padding: 0.625rem 1.25rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-add-note:hover {
    background: #2563eb;
}

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

.no-notes {
    text-align: center;
    color: #6b7280;
    padding: 2rem;
    font-style: italic;
}

.staff-note-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    transition: box-shadow 0.2s;
}

.staff-note-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.staff-note-item.expired {
    opacity: 0.6;
    background: #f9fafb;
}

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

.note-author {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.author-avatar {
    font-size: 1.5rem;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-info strong {
    font-size: 0.9375rem;
    color: #1f2937;
}

.note-date {
    font-size: 0.8125rem;
    color: #6b7280;
}

.edited-badge {
    font-size: 0.75rem;
    color: #6b7280;
    font-style: italic;
}

.expired-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.note-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-edit-note,
.btn-delete-note {
    background: none;
    border: none;
    font-size: 1.125rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-edit-note:hover {
    background: #dbeafe;
}

.btn-delete-note:hover {
    background: #fee2e2;
}

.note-content {
    color: #374151;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .staff-notes-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .staff-notes-modal-header {
        padding: 1rem 1.5rem;
    }

    .staff-notes-modal-body {
        padding: 1rem;
    }

    .staff-notes-add {
        padding: 1rem;
    }
}