/* Modal Large */
.modal-large {
    max-width: 900px;
}

/* Client Profile Sections */
.client-profile-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.client-profile-section:last-child {
    border-bottom: none;
}

.client-profile-section h4 {
    margin: 0 0 20px 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* Search Box */
.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.search-box input {
    padding-left: 40px;
    width: 100%;
}

/* Notes Toolbar */
.notes-toolbar {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.notes-filters {
    display: flex;
    gap: 10px;
}

/* Note Card Actions */
.note-card {
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

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

.note-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.note-card:hover .note-card-actions {
    opacity: 1;
}

.note-action-btn {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.note-action-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.note-action-btn.danger:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

/* Note Detail */
.note-detail-content {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.note-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
    background: #f1f5f9;
    border-radius: 8px;
}

.note-meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.note-meta-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
}

.note-meta-value {
    font-size: 14px;
    color: #1e293b;
}

/* Note Client Info */
.note-client {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 13px;
}

.note-client i {
    color: #6366f1;
}

/* Button Sizes */
.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Empty State */
.notes-empty {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.notes-empty i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.notes-empty h3 {
    margin: 0 0 10px 0;
    color: #475569;
}

.notes-empty p {
    margin: 0;
    font-size: 14px;
}

/* Loading State */
.notes-loading {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.notes-loading i {
    font-size: 32px;
    animation: spin 1s linear infinite;
}

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