/* Clients Page Styles */

/* Theme Variables */
:root {
    /* Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #2c3e50;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    --accent-primary: #70bb24;
    --accent-secondary: #5a9c1e;
    --header-bg: linear-gradient(135deg, #021c3b 0%, #020d1e 100%);
    --card-bg: #ffffff;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-heavy: rgba(0, 0, 0, 0.25);
    --overlay-bg: rgba(0, 0, 0, 0.6);
}

/* Dark theme removed - page always stays in light mode */
/*
[data-theme="dark"] {
    --bg-primary: #020d1e;
    --bg-secondary: #021c3b;
    --bg-tertiary: #0a2a4a;
    --text-primary: #ffffff;
    --text-secondary: #e9ecef;
    --text-muted: #adb5bd;
    --accent-primary: #70bb24;
    --accent-secondary: #5a9c1e;
    --header-bg: linear-gradient(135deg, #70bb24 0%, #5a9c1e 100%);
    --card-bg: #021c3b;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.4);
    --shadow-heavy: rgba(0, 0, 0, 0.6);
    --overlay-bg: rgba(2, 13, 30, 0.8);
}
*/

/* Desktop Filters */
.desktop-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    align-items: center;
}

/* Mobile Filters - Hidden on Desktop */
.mobile-filters {
    display: none;
}

/* Mobile Search Container - Hidden on Desktop */
.mobile-search-container {
    display: none;
}

/* Ensure search bar in top bar is visible on desktop */
.top-bar .search-bar {
    display: flex;
}

/* Floating Action Button - Hidden by default */
.mobile-fab {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.mobile-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(40, 167, 69, 0.4);
}

.mobile-fab:active {
    transform: translateY(0);
}

.filters select,
.filters input {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 150px;
}

.filters select:focus,
.filters input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.filters select option {
    background: white;
    color: #333;
}

.clear-filters-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.clear-filters-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.add-client-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.add-client-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.clients-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: auto;
}

.results-count-container {
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.results-count {
    background: #f8f9fa !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 4px !important;
    margin-bottom: 0.5rem !important;
    border-left: 2px solid #667eea !important;
    display: inline-block !important;
    width: auto !important;
    min-height: auto !important;
    height: auto !important;
    max-height: 30px !important;
    overflow: hidden !important;
}

.results-count p {
    margin: 0 !important;
    color: #6c757d !important;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    padding: 0 !important;
    display: inline !important;
}

.client-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    min-height: auto;
    height: auto;
    align-self: start;
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(102, 126, 234, 0.2);
}

.client-card:hover::before {
    opacity: 1;
}

.client-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.client-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.2;
}

.client-card-body {
    flex: 1;
}

/* Prominent cleaning type and price display */
.cleaning-type-prominent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cleaning-type-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    animation: subtle-pulse 3s ease-in-out infinite;
}

.cleaning-price-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

@keyframes subtle-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 3px 8px rgba(102, 126, 234, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }
}

.client-card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.client-card-info p {
    margin: 0;
    color: #5a6c7d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.client-card-info p:last-child {
    border-bottom: none;
}

.client-card-info i {
    color: #667eea;
    width: 18px;
    text-align: center;
    font-size: 1rem;
}

.cleaning-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-unpaid {
    background-color: #4a90e2;
    color: #fff;
}

.status-paid {
    background-color: #d4edda;
    color: #155724;
}

/* New color-coded status styles for days until cleaning */
.status-red {
    background: #f8d7da;
    color: #721c24;
    font-weight: 600;
}

.status-orange {
    background: #ffeaa7;
    color: #d63031;
    font-weight: 600;
}

.status-green {
    background: #d4edda;
    color: #155724;
    font-weight: 600;
}

.status-blue {
    background: #d1ecf1;
    color: #0c5460;
    font-weight: 600;
}

.status-grey {
    background: #e2e3e5;
    color: #383d41;
    font-weight: 600;
}

.status-black {
    background: #343a40;
    color: #ffffff;
    font-weight: 600;
}

/* Modal Styles */
.modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    z-index: 999999;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

/* Ensure add client modal is hidden by default */
#add-client-modal {
    display: none !important;
}

/* Override for mobile modal opening - no animation */
#add-client-modal.mobile-modal-open {
    display: block !important;
    opacity: 1 !important;
    animation: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-primary);
    margin: 2rem auto;
    padding: 0;
    width: 95%;
    max-width: 1200px;
    border-radius: 16px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px var(--shadow-heavy);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    color: #666;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.close-modal:hover {
    background: rgba(255, 255, 255, 1);
    color: #333;
    transform: scale(1.1);
}

/* Modern Client Details Modal */
.client-details-modal {
    max-width: 1400px;
    max-height: 90vh;
    padding: 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
}

.client-header-modern {
    background: var(--header-bg);
    color: white;
    padding: 2rem 4rem 2rem 2rem;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.client-header-modern::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.client-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
}

.client-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.client-title-info h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.client-subtitle {
    margin: 0.5rem 0 0 0;
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
}

.client-actions-modern {
    display: flex;
    gap: 0.75rem;
    z-index: 2;
}

.action-btn-modern {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.action-btn-modern.primary {
    background: rgba(40, 167, 69, 0.9);
    color: white;
}

.action-btn-modern.secondary {
    background: rgba(0, 123, 255, 0.9);
    color: white;
}

.action-btn-modern.danger {
    background: rgba(220, 53, 69, 0.9);
    color: white;
}

.action-btn-modern.theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.action-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.action-btn-modern.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.client-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.info-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-light);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-medium);
}

.info-card.full-width {
    grid-column: 1 / -1;
}

.card-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-content {
    padding: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.field-group:last-child {
    margin-bottom: 0;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

.input-field.full-width {
    grid-column: 1 / -1;
}

.input-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.input-field input,
.input-field select,
.input-field textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    /* Removed transition to fix mobile pasting issue */
    background: var(--bg-primary);
    color: var(--text-primary);
    box-sizing: border-box;
}

.input-field input:focus,
.input-field select:focus,
.input-field textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(112, 187, 36, 0.2);
}

.messenger-field-modern {
    display: flex;
    gap: 0.5rem;
}

.messenger-field-modern input {
    flex: 1;
}

.messenger-btn {
    width: 40px;
    height: 40px;
    background: #0084ff;
    color: white;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.messenger-btn:hover {
    background: #0073e6;
    transform: scale(1.05);
}

.action-buttons-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-modern {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
    justify-content: center;
}

.btn-modern.primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
}

.btn-modern.secondary {
    background: linear-gradient(135deg, var(--text-muted) 0%, var(--text-secondary) 100%);
    color: white;
}

.btn-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.schedule-section {
    margin-bottom: 1.5rem;
}

.schedule-section:last-child {
    margin-bottom: 0;
}

.schedule-header {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-radius: 12px 12px 0 0;
    margin: -0.5rem -0.5rem 1rem -0.5rem;
}

.schedule-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cleaning-list.modern {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 2px 4px var(--shadow-light);
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    /* Desktop: Scrollable with reasonable height */
    min-height: auto;
    height: auto;
    /* Add subtle indicator that content is scrollable */
    border: 2px solid transparent;
    background-clip: padding-box;
}

.cleaning-list.modern:hover {
    border-color: rgba(112, 187, 36, 0.2);
    transition: border-color 0.3s ease;
}

/* Custom scrollbar styling for cleaning list */
.cleaning-list.modern::-webkit-scrollbar {
    width: 8px;
}

.cleaning-list.modern::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.cleaning-list.modern::-webkit-scrollbar-thumb {
    background: rgba(112, 187, 36, 0.3);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.cleaning-list.modern::-webkit-scrollbar-thumb:hover {
    background: rgba(112, 187, 36, 0.5);
}

/* Responsive height adjustments for different screen sizes */
@media (min-width: 1200px) {
    .cleaning-list.modern {
        max-height: 500px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .cleaning-list.modern {
        max-height: 350px;
    }
}

/* Add fade effect to indicate scrollable content */
.cleaning-list.modern {
    position: relative;
}

.cleaning-list.modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, var(--bg-tertiary));
    pointer-events: none;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.payment-stats-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.stat-card.total-paid .stat-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.stat-card.outstanding .stat-icon {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
}

.stat-card.next-payment .stat-icon {
    background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
    color: white;
}

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

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
}

.stat-card {
    position: relative;
}

.stat-card .btn-icon {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.8rem;
}

.stat-card:hover .btn-icon {
    opacity: 1;
}

.stat-card .btn-icon:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

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

.add-note-form-modern textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 1rem;
}

.note-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.map-container-modern {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-container-modern #client-map {
    width: 100%;
    height: 100%;
}

.client-footer-actions {
    background: var(--bg-primary);
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    border-radius: 0 0 16px 16px;
}

/* Mobile Responsive Design for Modern Modal */
@media (max-width: 768px) {
    .client-details-modal {
        width: 98%;
        margin: 1rem auto;
        max-height: 95vh;
        overflow-y: auto;
    }

    .client-header-modern {
        padding: 1.5rem 3rem 1.5rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .client-title-section {
        flex-direction: column;
        text-align: center;
    }

    .client-content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .field-group {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .input-field {
        width: 100%;
        box-sizing: border-box;
    }
    
    .input-field input,
    .input-field select,
    .input-field textarea {
        width: 100%;
        box-sizing: border-box;
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    .action-buttons-row {
        flex-direction: column;
    }

    .payment-stats-modern {
        grid-template-columns: 1fr;
    }

    .client-footer-actions {
        flex-direction: column;
        padding: 1rem;
    }

    .close-modal {
        right: 0.75rem;
        top: 0.75rem;
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    /* Fix schedule sections on mobile */
    .schedule-section {
        margin-bottom: 1.5rem;
        overflow: visible;
        width: 100%;
        box-sizing: border-box;
    }

    .schedule-header {
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .schedule-header h4 {
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .cleaning-list.modern {
        gap: 0.75rem;
        max-height: none;
        overflow: visible;
        padding: 0.5rem;
        width: 100%;
        box-sizing: border-box;
        background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
        border-radius: 12px;
        border: 1px solid var(--border-color);
        box-shadow: inset 0 2px 4px var(--shadow-light);
        /* Debug: Remove any height constraints */
        min-height: auto;
        height: auto;
    }

    /* Improve cleaning item display on mobile */
    .cleaning-item {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        padding: 1rem !important;
        margin-bottom: 0.75rem;
        background: var(--card-bg);
        border-radius: 12px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        width: 100% !important;
        box-sizing: border-box !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        transition: all 0.2s ease;
        position: relative;
        overflow: visible;
    }

    .cleaning-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
        opacity: 0.8;
    }

    .cleaning-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        border-color: rgba(112, 187, 36, 0.2);
    }

    .cleaning-item > div:first-child {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }

    .cleaning-item .cleaning-info {
        gap: 0.25rem;
    }

    .cleaning-item .cleaning-date {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    .cleaning-item .cleaning-type {
        font-size: 0.75rem;
        color: white;
        display: inline-block;
        background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
        width: fit-content;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 4px rgba(112, 187, 36, 0.3);
    }

    .cleaning-item .cleaning-amount {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--accent-primary);
        background: linear-gradient(135deg, rgba(112, 187, 36, 0.1) 0%, rgba(90, 156, 30, 0.1) 100%);
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
        border: 1px solid rgba(112, 187, 36, 0.2);
        text-align: center;
        margin-top: 0.5rem;
    }

    .cleaning-item .cleaning-actions {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        gap: 0.75rem !important;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border-color);
    }

    .cleaning-item .payment-status-wrapper {
        flex: 1 !important;
        max-width: none !important;
    }

    .cleaning-item .payment-status-btn {
        min-width: auto !important;
        width: 100% !important;
        max-width: 120px !important;
        padding: 0.6rem 1rem !important;
        font-size: 0.8rem !important;
        margin-right: 0 !important;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        border-radius: 20px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
    }

    .cleaning-item .payment-status-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .cleaning-item .delete-cleaning-btn {
        flex-shrink: 0 !important;
        padding: 0.6rem !important;
        font-size: 0.9rem !important;
        background: rgba(220, 53, 69, 0.1);
        color: #dc3545;
        border: 1px solid rgba(220, 53, 69, 0.3);
        border-radius: 20px;
        transition: all 0.3s ease;
    }

    .cleaning-item .delete-cleaning-btn:hover {
        background: rgba(220, 53, 69, 0.2);
        border-color: rgba(220, 53, 69, 0.5);
        transform: scale(1.05);
    }

    /* Prevent content from going off-screen */
    .info-card {
        overflow: hidden;
        word-wrap: break-word;
    }

    .card-content {
        padding: 1rem;
        overflow: hidden;
    }
}

/* Legacy Client Details Styles - Hidden when using modern design */
.client-details-modal .client-info {
    display: none;
}

/* Keep legacy styles for backward compatibility */
.client-info:not(.client-details-modal .client-info) {
    display: grid;
    gap: 2rem;
}

.info-section {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    position: relative;
    padding-bottom: 2rem;
}

.editable-field {
    position: relative;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-right: 2rem;
}

.editable-field input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Cleaning Status Styles */
.cleaning-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-unpaid {
    background: #4a90e2;
    color: #fff;
}

.status-paid {
    background: #d4edda;
    color: #155724;
}

/* Calendar View */
.calendar-view {
    margin: 1rem 0;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Cleaning List Styles */
.cleaning-list {
    display: grid;
    gap: 0.5rem;
}

.cleaning-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

.cleaning-item:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cleaning-item > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cleaning-item strong {
    color: #333;
    min-width: 150px;
}

.cleaning-item span {
    color: #666;
}

.cleaning-item .cleaning-type {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #666;
    margin: 0 8px;
}

.cleaning-hours {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.cleaning-hours span {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: 0 1px 3px var(--shadow-light);
    transition: all 0.2s ease;
}

.cleaning-hours span:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px var(--shadow-medium);
}

/* Payment History Styles */
.payment-history {
    display: grid;
    gap: 0.5rem;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#add-client-form button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
}

#add-client-form button:hover {
    background: #45a049;
}

/* Map Section Styles */
.map-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.map-section h3 {
    margin-bottom: 1rem;
    color: #333;
}

.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 1rem;
}

#client-map {
    width: 100%;
    height: 100%;
}

/* Client Header Styles */
.client-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

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

.action-btn {
    background: #f0f0f0;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.action-btn:hover {
    background: #e0e0e0;
}

.action-btn i {
    font-size: 1rem;
}

/* Schedule Actions */
.schedule-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Payment Summary */
.payment-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.payment-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

/* Notes Container */
.notes-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.note-item {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    position: relative;
}

.note-date {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.note-content {
    margin: 0;
}

.add-note-form {
    margin-top: 1rem;
}

.add-note-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    min-height: 100px;
    resize: vertical;
}

.save-note {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.save-note:hover {
    background: #45a049;
}

/* Access Information */
#special-instructions {
    width: 100%;
    min-height: 100px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

/* Payment Status Dropdown Styles */
.payment-status-wrapper {
    position: relative;
    display: inline-block;
}

.payment-status-btn {
    min-width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    padding: 6px 18px;
    margin-right: 18px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
    border: none;
    outline: none;
}

.payment-status-pending {
    background: #fdab3d;
}

.payment-status-unpaid {
    background: #4a90e2;
}

.payment-status-paid {
    background: #00c875;
}

.payment-status-past-due {
    background-color: #dc3545;
    color: white;
}

.payment-status-past-due:hover {
    background-color: #c82333;
}

.payment-status-dropdown {
    position: absolute;
    left: 0;
    top: 110%;
    min-width: 180px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    border-radius: 10px;
    z-index: 20;
    padding: 10px 0 0 0;
    margin-top: 6px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    padding-bottom: 8px;
}

.payment-status-dropdown.open {
    display: flex;
}

.payment-status-option {
    width: 100%;
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 0;
    border: none;
    background: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border-radius: 0;
    margin: 0;
    justify-content: center;
}

.payment-status-option.payment-status-pending {
    background: #fdab3d;
    color: #fff;
}

.payment-status-option.payment-status-unpaid {
    background: #4a90e2;
    color: #fff;
}

.payment-status-option.payment-status-paid {
    background: #00c875;
    color: #fff;
}

.payment-status-option.payment-status-past-due {
    background-color: #dc3545;
    color: white;
}

.payment-status-option.payment-status-past-due:hover {
    background-color: #c82333;
}

.payment-status-option:hover {
    filter: brightness(0.95);
}

/* Balloon animation for Paid status */
.payment-status-paid .balloon-anim {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

@keyframes balloonUp {
    0% { transform: translateY(0); opacity: 0.8; }
    100% { transform: translateY(-40px); opacity: 0; }
}

/* Responsive Design */
@media (max-width: 770px) {
    /* Mobile Navigation - sidebar styles defined in main.css */
    
    .nav-menu {
        padding: 1rem;
        margin-top: 0;
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .nav-menu li {
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .nav-menu a {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        font-size: 0.9rem;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        flex-direction: row !important;
        width: 100% !important;
        height: auto !important;
        justify-content: flex-start !important;
    }
    
    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .nav-menu i {
        margin-right: 10px !important;
        font-size: 16px !important;
        width: 20px !important;
    }
    
    /* Mobile Menu Toggle - styles defined in main.css */
    
    /* Main Content Adjustments - padding handled in main.css */
    
    .top-bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 998;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        min-height: 60px;
    }
    
    .search-bar {
        width: calc(100% - 80px);
        background: white;
        border-radius: 12px;
        padding: 0.75rem 1rem;
        border: 2px solid #e9ecef;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        transition: border-color 0.3s ease;
        margin-left: auto;
        margin-right: 0;
    }
    
    .search-bar:focus-within {
        border-color: #667eea;
        box-shadow: 0 2px 12px rgba(102, 126, 234, 0.15);
    }
    
    .search-bar input {
        font-size: 1rem;
        padding: 0.5rem;
        border: none;
        background: transparent;
        width: 100%;
        outline: none;
    }
    
    .search-bar i {
        color: #6c757d;
        margin-right: 0.5rem;
    }
    
    /* Hide CSV button on mobile */
    .csv-upload-btn {
        display: none;
    }
    
    /* Hide top bar buttons at 930px breakpoint */
    .top-bar-buttons {
        display: none !important;
    }
    
    .top-bar .top-bar-buttons {
        display: none !important;
    }
    
    /* Show mobile FAB for Add Client */
    .mobile-fab {
        display: flex !important;
        z-index: 1002;
        pointer-events: auto;
    }
    
    /* Hide mobile FAB when add client modal is open */
    body.modal-open .mobile-fab {
        display: none !important;
    }
    
    /* Show mobile FAB when modal is closed */
    .mobile-fab {
        display: block !important;
    }
    
    /* Mobile Search Bar - Positioned below top bar */
    /* Mobile Search Container - Hidden on mobile */
    .mobile-search-container {
        display: none;
    }
    
    /* Show the search bar in the top bar on mobile */
    .top-bar .search-bar {
        display: flex;
    }
    
    /* Hide desktop elements on mobile */
    .desktop-only {
        display: none;
    }
    
    .desktop-filters {
        display: none;
    }
    
    .mobile-filters {
        display: block;
    }
    
    /* Hide CRM Dashboard on mobile */
    .crm-dashboard {
        display: none;
    }
    
    .crm-header {
        display: none;
    }
    
    .crm-stats-grid {
        display: none;
    }
    
    /* Mobile Filters */
    .mobile-filters {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        margin-top: 1rem;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        position: relative;
    }
    
    /* Mobile Filters */
    .mobile-filters {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        margin-top: 1rem;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        position: relative;
    }
    
    .filters-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid #e9ecef;
    }
    
    .filters-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: #495057;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .filters-toggle {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: none;
        color: white;
        padding: 0.5rem;
        border-radius: 8px;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .filters-toggle:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }
    
    .filters-content {
        display: none;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .filters-content.active {
        display: flex;
    }
    
    .mobile-filters select,
    .mobile-filters input {
        min-width: auto;
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        background: white;
        transition: border-color 0.3s ease;
    }
    
    .mobile-filters select:focus,
    .mobile-filters input:focus {
        border-color: #667eea;
        outline: none;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }
    
    .clear-filters-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem;
        font-size: 0.9rem;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        color: #6c757d;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .clear-filters-btn:hover {
        background: #e9ecef;
        color: #495057;
    }
    
    /* Client Cards */
    .clients-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .client-card {
        padding: 1rem;
        border-radius: 12px;
        margin: 0;
        min-height: auto;
    }
    
    .client-card-header h3 {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .client-card-info p {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }
    
    /* Mobile responsive styles for prominent badges */
    .cleaning-type-prominent {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
        margin-bottom: 12px;
        padding: 8px 0;
    }
    
    .cleaning-type-badge,
    .cleaning-price-badge {
        text-align: center;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .cleaning-status {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Results Count */
    .results-count-container {
        padding: 0 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .results-count {
        padding: 0.25rem 0.5rem !important;
        margin-bottom: 0.5rem !important;
        font-size: 0.75rem !important;
    }
    
    /* Modal Adjustments */
    .modal-content {
        width: 95%;
        margin: 1rem auto;
        padding: 1.5rem;
        max-height: 90vh;
    }
    
    .client-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Form Adjustments */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 1rem;
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    /* Payment Summary */
    .payment-summary {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .payment-stat {
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    /* Additional Mobile Optimizations */
    .client-card-info i {
        font-size: 0.9rem;
        width: 16px;
    }
    
    .info-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .info-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .editable-field {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .editable-field label {
        font-size: 0.9rem;
        font-weight: 600;
        color: #495057;
    }
    
    .cleaning-options {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .cleaning-option {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .cleaning-option h3 {
        font-size: 1rem;
    }
    
    .cleaning-option .price {
        font-size: 1.1rem;
    }
    
    .cleaning-option .rate {
        font-size: 0.8rem;
    }
    
    /* Touch-friendly improvements */
    button, 
    .action-btn,
    .cleaning-option {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* Better spacing for mobile */
    .content-area {
        padding: 0;
    }
    
    /* Improved modal for mobile */
    .modal {
        padding: 0.5rem;
        align-items: center;
        justify-content: center;
    }
    
    .modal-content {
        border-radius: 12px;
        overflow-y: auto;
    }
    
    /* Override for add client modal to be full screen */
    #add-client-modal {
        padding: 0 !important;
        align-items: stretch !important;
        justify-content: stretch !important;
        display: flex !important;
        width: 100vw !important;
        height: 100vh !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 1000 !important;
    }
    
    #add-client-modal .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }
    
    /* Better form styling on mobile */
    #add-client-form .form-group {
        margin-bottom: 1.5rem;
    }
    
    #add-client-form input,
    #add-client-form select,
    #add-client-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
        border-radius: 8px;
        border: 1px solid #e9ecef;
    }
    
    /* Improved button spacing */
    .schedule-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .schedule-actions .action-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 768px) {
    .top-bar {
        padding: 0.75rem;
    }
    
    .search-bar {
        padding: 0.5rem;
    }
    
    .search-bar input {
        font-size: 16px;
        padding: 0.5rem;
    }
    
    .top-bar-buttons {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .add-client-btn,
    .csv-upload-btn {
        font-size: 0.8rem;
        padding: 0.75rem;
    }
    
    .filters {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .filters select,
    .filters input {
        padding: 0.75rem;
        font-size: 16px;
    }
    
    .client-card {
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .client-card-header h3 {
        font-size: 1rem;
    }
    
    .client-card-info p {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }
    
    /* Extra small screen styles for prominent badges */
    .cleaning-type-badge,
    .cleaning-price-badge {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .cleaning-status {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
    
    .results-count-container {
        padding: 0 0.25rem;
        margin-bottom: 0.5rem;
    }
    
    .results-count {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.7rem !important;
    }
    
    .modal-content {
        width: 98%;
        margin: 0.5rem auto;
        padding: 1rem;
    }
    
    .client-actions {
        gap: 0.4rem;
    }
    
    .action-btn {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    
    .info-section {
        padding: 0.75rem;
    }
    
    .info-section h3 {
        font-size: 1rem;
    }
    
    .editable-field {
        margin-bottom: 0.75rem;
    }
    
    .editable-field label {
        font-size: 0.85rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 0.6rem;
    }
    
    .cleaning-options {
        gap: 0.5rem;
    }
    
    .cleaning-option {
        padding: 0.75rem;
    }
    
    .cleaning-option h3 {
        font-size: 0.9rem;
    }
    
    .cleaning-option .price {
        font-size: 1rem;
    }
    
    .cleaning-option .rate {
        font-size: 0.75rem;
    }
    
    /* Mobile FAB adjustments for small screens */
    .mobile-fab {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }
    
    /* Filter toggle adjustments */
    .filters-toggle {
        padding: 0.4rem;
        font-size: 0.9rem;
    }
    
    .filters-title {
        font-size: 1rem;
    }
}

/* Messenger Field Styles */
.messenger-field {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.messenger-field input {
    flex: 1;
}

.open-messenger-btn {
    background: #0084ff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.open-messenger-btn:hover {
    background: #0073e6;
}

.open-messenger-btn i {
    font-size: 1.2rem;
}

/* Field Management Styles */
.remove-field {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}

.remove-field:hover {
    color: #e2445c;
}

.add-field-btn {
    background: #f0f0f0;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: background-color 0.2s;
    position: relative;
}

.add-field-btn:hover {
    background: #e0e0e0;
}

.add-field-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 10;
}

.add-field-option {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.add-field-option:hover {
    background: #f5f5f5;
}

.add-field-option:not(:last-child) {
    border-bottom: 1px solid #eee;
}

/* Cleaning Calculator Styles */
.cleaning-calculator {
    max-width: 800px;
    width: 90%;
}

.calculator-type {
    margin-bottom: 1.5rem;
}

.calculator-type select {
    width: 200px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cleaning-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.cleaning-option {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.cleaning-option:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.cleaning-option.selected {
    border-color: #4CAF50;
    background: #f0f8f0;
}

.cleaning-option h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.cleaning-option .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4CAF50;
    margin: 0;
}

.cleaning-details {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.cleaning-details .detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.cleaning-details .detail:last-child {
    border-bottom: none;
}

.cleaning-details label {
    color: #666;
}

.cleaning-details span {
    font-weight: bold;
    color: #333;
}

.manual-calculator .form-group {
    margin-bottom: 1rem;
}

.manual-calculator label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
}

.manual-calculator input,
.manual-calculator select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.add-cleaning-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.add-cleaning-btn:hover {
    background: #45a049;
}

/* Responsive Design for Calculator */
@media (max-width: 768px) {
    .cleaning-options {
        grid-template-columns: 1fr;
    }

    .cleaning-details .detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

.sqft-info {
    background: #f0f8f0;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.sqft-info p {
    margin: 0;
    color: #333;
}

.sqft-info strong {
    color: #4CAF50;
}

.cleaning-option .rate {
    font-size: 0.9rem;
    color: #666;
    margin: 0.25rem 0 0 0;
}

.cleaning-details .detail.total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #4CAF50;
    font-size: 1.1rem;
}

.cleaning-details .detail.total label,
.cleaning-details .detail.total span {
    font-weight: bold;
    color: #4CAF50;
}

/* Cleaning Schedule Styles */
.cleaning-schedule {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.cleaning-schedule .form-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cleaning-schedule .form-group:last-child {
    margin-bottom: 0;
}

.cleaning-schedule label {
    font-weight: 500;
    color: #333;
    min-width: 120px;
}

.cleaning-schedule input[type="date"],
.cleaning-schedule input[type="time"] {
    width: 200px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 1rem;
}

/* Manual Calculator Styles */
.manual-calculator {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.manual-calculator .manual-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.manual-calculator .form-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.manual-calculator .form-group:last-child {
    border-bottom: none;
}

.manual-calculator .form-group label {
    font-weight: 500;
    color: #333;
    min-width: 120px;
}

.manual-calculator select,
.manual-calculator input {
    width: 200px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 1rem;
}

.manual-calculator .form-group.total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #4CAF50;
    font-size: 1.1rem;
}

.manual-calculator .form-group.total label,
.manual-calculator .form-group.total span {
    font-weight: bold;
    color: #4CAF50;
}

/* Responsive Design for Manual Calculator */
@media (max-width: 768px) {
    .cleaning-schedule .form-group,
    .manual-calculator .form-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .cleaning-schedule input[type="date"],
    .cleaning-schedule input[type="time"],
    .manual-calculator select,
    .manual-calculator input {
        width: 100%;
    }
}

/* Cleaning Actions Styles */
.cleaning-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.delete-cleaning-btn {
    background: none;
    border: none;
    color: #e2445c;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.delete-cleaning-btn:hover {
    background: #fdeaea;
    transform: scale(1.1);
}

.delete-cleaning-btn i {
    font-size: 1rem;
}

/* Add Client Modal Styles */
#add-client-modal .modal-content {
    max-width: 800px;
    width: 95%;
    padding: 2.5rem 2rem 2rem 2rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    position: relative;
}

#add-client-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

#add-client-form .form-group {
    margin-bottom: 0;
}

#add-client-form .form-group.full-width {
    grid-column: 1 / -1;
}

#add-client-form .cleaning-options {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

#add-client-form hr {
    grid-column: 1 / -1;
    margin: 1rem 0;
    border: none;
    border-top: 1.5px solid #eee;
}

#add-client-form h3 {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
    color: #4CAF50;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    font-weight: 600;
}

#add-client-form button[type="submit"] {
    grid-column: 1 / -1;
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 0.85rem 0;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    width: 100%;
    box-shadow: 0 2px 8px rgba(76,175,80,0.08);
    transition: background 0.2s, box-shadow 0.2s;
}

#add-client-form .form-group .calendar-picker,
#add-client-form .form-group .time-picker {
    width: 100%;
    max-width: none;
}

#add-client-form .form-group select {
    width: 100%;
    max-width: none;
}

#add-client-form .form-group input[type="number"] {
    width: 100%;
    max-width: none;
}

#add-client-form .form-group input[type="text"],
#add-client-form .form-group input[type="email"] {
    width: 100%;
}

#add-client-form .form-group textarea {
    width: 100%;
}

@media (max-width: 768px) {
    /* Full-screen modal on mobile */
    #add-client-modal {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
    }
    
    #add-client-modal .modal-content {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        min-height: 100vh !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 20px !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin: 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 1001 !important;
        box-sizing: border-box !important;
    }
    
    /* Modal handle indicator */
    #add-client-modal .modal-content::before {
        content: '';
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 4px;
        background: #c7c7cc;
        border-radius: 2px;
    }
    
    #add-client-form {
        grid-template-columns: 1fr;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #add-client-form .cleaning-options {
        grid-template-columns: 1fr;
    }
    
    /* iOS-style form inputs */
    #add-client-form .form-group input,
    #add-client-form .form-group select,
    #add-client-form .form-group textarea {
        padding: 16px;
        font-size: 16px;
        border-radius: 12px;
        border: 2px solid #e5e5ea;
        background: #f8f9fa;
        /* Removed transition to fix mobile pasting issue */
    }
    
    #add-client-form .form-group input:focus,
    #add-client-form .form-group select:focus,
    #add-client-form .form-group textarea:focus {
        border-color: #007AFF;
        box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
        background: white;
        /* Removed transform to fix mobile pasting issue */
    }
    
    #add-client-form .form-group input:active,
    #add-client-form .form-group select:active,
    #add-client-form .form-group textarea:active {
        /* Removed transform to fix mobile pasting issue */
    }
    
    /* iOS-style submit button */
    #add-client-form button[type="submit"] {
        padding: 16px 24px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 12px;
        min-height: 50px;
        background: #007AFF;
        color: white;
        border: none;
        margin-top: 20px;
        position: sticky;
        bottom: 0;
        z-index: 10;
    }
    
    #add-client-form button[type="submit"]:active {
        transform: scale(0.98);
    }
    
    /* Calendar picker mobile adjustments */
    #add-client-form .calendar-picker {
        width: 100%;
        margin-bottom: 16px;
    }
    
    #add-client-form .calendar-picker .calendar-header {
        padding: 12px;
        background: #f8f9fa;
        border-radius: 8px;
        margin-bottom: 8px;
    }
    
    #add-client-form .calendar-picker .calendar-ui {
        padding: 8px;
    }
    
    #add-client-form .calendar-picker .calendar-ui table {
        width: 100%;
        border-collapse: collapse;
    }
    
    #add-client-form .calendar-picker .calendar-ui td {
        padding: 8px 4px;
        text-align: center;
        cursor: pointer;
        border-radius: 6px;
        transition: all 0.2s;
        font-size: 14px;
        min-width: 32px;
        height: 32px;
    }
    
    #add-client-form .calendar-picker .calendar-ui td:hover:not(.past):not(.booked) {
        background: #f0f8ff;
        transform: scale(1.05);
    }
    
    #add-client-form .calendar-picker .calendar-day.selected {
        background: #007AFF !important;
        color: white !important;
        font-weight: bold;
    }
    
    /* Time picker mobile adjustments */
    #add-client-form .time-picker {
        position: relative;
        width: 100%;
        margin-bottom: 16px;
    }
    
    #add-client-form .time-picker .time-display {
        padding: 16px;
        background: white;
        border: 2px solid #e5e5ea;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    #add-client-form .time-picker .time-display:hover {
        border-color: #007AFF;
    }
    
    #add-client-form .time-picker .time-display.active {
        border-color: #007AFF;
        box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
    }
    
    #add-client-form .time-picker .time-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 2px solid #e5e5ea;
        border-top: none;
        border-radius: 0 0 12px 12px;
        max-height: 200px;
        overflow-y: auto;
        z-index: 10001;
        display: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }
    
    #add-client-form .time-picker .time-dropdown.active {
        display: block;
    }
    
    #add-client-form .time-picker .time-slot {
        padding: 12px 16px;
        cursor: pointer;
        transition: background-color 0.2s;
        font-size: 16px;
        color: #1d1d1f;
    }
    
    #add-client-form .time-picker .time-slot:hover {
        background: #f0f8ff;
    }
    
    #add-client-form .time-picker .time-slot.selected {
        background: #007AFF;
        color: white;
        font-weight: 600;
    }
}

/* Add Client Form Styles */
#add-client-form .cleaning-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

#add-client-form .cleaning-option {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

#add-client-form .cleaning-option:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

#add-client-form .cleaning-option.selected {
    border-color: #4CAF50;
    background: #f0f8f0;
}

#add-client-form .cleaning-option h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
}

#add-client-form .cleaning-option .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4CAF50;
    margin: 0.5rem 0;
}

#add-client-form .cleaning-option .rate {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

@media (max-width: 768px) {
    #add-client-form .cleaning-options {
        grid-template-columns: 1fr;
    }
}

.recurring-frequency {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.recurring-frequency h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.2rem;
}

.frequency-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.frequency-option {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.frequency-option:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.frequency-option.selected {
    border-color: #4CAF50;
    background: #f0f8f0;
}

.frequency-option h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.frequency-option p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.number-of-cleanings {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.number-of-cleanings h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.2rem;
}

.cleanings-selector {
    display: flex;
    justify-content: center;
}

.cleanings-selector select {
    width: 200px;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.cleanings-selector select:hover {
    border-color: #4CAF50;
}

.cleanings-selector select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

/* Recurring options styles for add client form */
#recurring-options {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

#recurring-options h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

#recurring-options .form-group {
    margin-bottom: 15px;
}

#recurring-options .form-group:last-child {
    margin-bottom: 0;
}

#recurring-options label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

#recurring-options select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s;
}

#recurring-options select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

@media (max-width: 768px) {
    .frequency-options {
        grid-template-columns: 1fr;
    }
    
    .cleanings-selector select {
        width: 100%;
    }
    
    #recurring-options {
        padding: 15px;
        margin: 15px 0;
    }
}

/* Cleaning History Styles */
.cleaning-history {
    display: grid;
    gap: 1.5rem;
}

.upcoming-cleanings,
.past-cleanings {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cleaning-history h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
}

.cleaning-list {
    display: grid;
    gap: 0.75rem;
}

.cleaning-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.cleaning-item .cleaning-info {
    display: grid;
    gap: 0.25rem;
}

.cleaning-item .cleaning-date {
    font-weight: 600;
    color: #2c3e50;
}

.cleaning-item .cleaning-type {
    color: #6c757d;
    font-size: 0.9rem;
}

.cleaning-item .cleaning-amount {
    font-weight: 600;
    color: #28a745;
}

.cleaning-item .cleaning-status {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 12px;
}

/* CSV Upload Styles */
.top-bar-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.csv-upload-btn {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.csv-upload-btn:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.csv-upload-container {
    max-width: 100%;
}

.csv-instructions {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #2196F3;
}

.csv-instructions h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
}

.csv-instructions p {
    margin: 0 0 0.5rem 0;
    color: #666;
}

.csv-instructions ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.csv-instructions li {
    margin: 0.25rem 0;
    color: #555;
    font-size: 0.9rem;
}

.csv-instructions strong {
    color: #333;
    font-weight: 600;
}

.csv-upload-area {
    margin-bottom: 1.5rem;
}

.upload-drop-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-drop-zone:hover {
    border-color: #2196F3;
    background: #f0f8ff;
}

.upload-drop-zone.dragover {
    border-color: #2196F3;
    background: #e3f2fd;
    transform: scale(1.02);
}

.upload-drop-zone i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
    display: block;
}

.upload-drop-zone.dragover i {
    color: #2196F3;
}

.upload-drop-zone p {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 1rem;
}

.select-file-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.select-file-btn:hover {
    background: #1976D2;
}

.csv-preview {
    margin-top: 1.5rem;
}

.csv-preview h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
}

.preview-table-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.preview-table th,
.preview-table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.preview-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 1;
}

.preview-table td {
    color: #666;
}

.preview-table tr:hover {
    background: #f9f9f9;
}

.csv-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.upload-options {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.force-upload-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
}

.force-upload-option input[type="checkbox"] {
    margin: 0;
}

/* Custom Checkbox Styles for Manual Pricing */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 2rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.checkbox-label:hover input ~ .checkmark {
    border-color: #4CAF50;
}

.checkbox-label input:checked ~ .checkmark {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label .checkmark:after {
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Manual Price Group Styles */
#manual-price-group {
    transition: all 0.3s ease;
    overflow: hidden;
}

#manual-price-group.hidden {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

#manual-price-group.visible {
    max-height: 200px;
    opacity: 1;
}

/* Modern Cleaning Edit Modal Styles */
.edit-cleaning-modal-modern {
    max-width: 1200px;
    width: 95vw;
    max-height: 90vh;
    margin: 2vh auto;
    border-radius: 16px;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.modal-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.modal-title-info h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.modal-subtitle {
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.3;
}

.close-modal-modern {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.close-modal-modern:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.modal-body-modern {
    padding: 2rem;
    overflow-y: auto;
    max-height: 70vh;
}

.form-modern {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-grid-modern {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .form-grid-modern {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    
    .form-section:last-child {
        grid-column: 1 / -1;
    }
}

.form-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
}

.section-title i {
    color: #667eea;
    font-size: 1rem;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-field-modern {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-field-modern label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.input-field-modern input,
.input-field-modern select {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: white;
}

.input-field-modern input:focus,
.input-field-modern select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.select-modern {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.field-hint {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.manual-pricing-note {
    color: #059669;
    font-weight: 500;
}

.manual-pricing-note i {
    margin-right: 0.25rem;
}

.price-input-wrapper {
    width: 100%;
}

.price-field {
    max-width: 300px;
}

.price-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 1rem;
    color: #6b7280;
    font-weight: 500;
    z-index: 1;
}

.price-input-container input {
    padding-left: 2.5rem;
}

.modal-actions-modern {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
}

.btn-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    justify-content: center;
    min-width: 120px;
}

.btn-modern.primary {
    background: #667eea;
    color: white;
}

.btn-modern.primary:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-modern.primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-modern.secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-modern.secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Modern Payment Modal Styles */
.add-payment-modal-modern {
    max-width: 900px;
    width: 90vw;
    max-height: 85vh;
    margin: 4vh auto;
    border-radius: 16px;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

.form-grid-payment {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .form-grid-payment {
        grid-template-columns: 1fr 1fr;
    }
}

.amount-field {
    max-width: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .edit-cleaning-modal-modern {
        width: 95vw;
        margin: 1vh auto;
        max-height: 95vh;
    }
    
    .add-payment-modal-modern {
        width: 95vw;
        margin: 2vh auto;
        max-height: 95vh;
    }
    
    .modal-header-modern {
        padding: 1.5rem;
    }
    
    .modal-body-modern {
        padding: 1.5rem;
    }
    
    .modal-title-info h2 {
        font-size: 1.3rem;
    }
    
    .field-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-grid-payment {
        grid-template-columns: 1fr;
    }
    
    .modal-actions-modern {
        flex-direction: column-reverse;
    }
    
    .btn-modern {
        width: 100%;
    }
}

.upload-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.upload-csv-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.upload-csv-btn:hover {
    background: #45a049;
}

.upload-csv-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.cancel-upload-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.cancel-upload-btn:hover {
    background: #d32f2f;
}

.upload-progress {
    margin-top: 1.5rem;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    width: 0%;
    transition: width 0.3s ease;
}

#progress-text {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive design for CSV upload */
@media (max-width: 768px) {
    .top-bar-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .csv-upload-btn,
    .add-client-btn {
        width: 100%;
        justify-content: center;
    }
    
    .upload-drop-zone {
        padding: 1rem;
    }
    
    .upload-drop-zone i {
        font-size: 2rem;
    }
    
    .csv-actions {
        flex-direction: column;
    }
    
    .preview-table {
        font-size: 0.75rem;
    }
    
    .preview-table th,
    .preview-table td {
        padding: 0.25rem;
    }
}

/* Payment Overview Enhancements */
.payment-methods-section,
.payment-history-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.payment-methods-section h4,
.payment-history-section h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-methods-section h4::before {
    content: "💳";
    font-size: 1.2rem;
}

.payment-history-section h4::before {
    content: "📋";
    font-size: 1.2rem;
}

.saved-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.payment-method-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.payment-method-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 2px 8px var(--shadow-light);
}

.payment-method-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-method-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.payment-method-icon.stripe {
    background: linear-gradient(135deg, #6772e5, #5469d4);
}

.payment-method-icon.cash {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.payment-method-icon.zelle {
    background: linear-gradient(135deg, #6f1ab6, #9c27b0);
}

.payment-method-icon.venmo {
    background: linear-gradient(135deg, #008cff, #0074cc);
}

.payment-method-icon.square {
    background: linear-gradient(135deg, #000000, #333333);
}

.payment-method-details h5 {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.payment-method-details p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
}

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

.btn-icon {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.btn-icon:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.btn-icon.add-payment-btn {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.btn-icon.add-payment-btn:hover {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
}

.add-payment-method-btn {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
}

.payment-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
}

.payment-history-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.payment-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.payment-actions .btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: var(--secondary-bg);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

.payment-actions .edit-payment-btn:hover {
    background: var(--primary-color);
    color: white;
}

.payment-actions .delete-payment-btn:hover {
    background: var(--danger-color);
    color: white;
}

.payment-history-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-status-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
}

.payment-status-icon.paid {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.payment-status-icon.pending {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.payment-status-icon.failed {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.payment-history-details h6 {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.payment-history-details p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
}

.payment-amount-display {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Payment Modal Styles */
.add-payment-modal,
.add-payment-method-modal {
    max-width: 500px;
    background: var(--bg-primary);
    border-radius: 16px;
}

.modal-header {
    background: var(--header-bg);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    z-index: 2;
    font-size: 0.9rem;
}

.amount-input-wrapper input {
    padding-left: 500rem;
}

/* Specific styling for the Add Payment modal amount input */
.add-payment-modal .amount-input-wrapper input {
    padding-left: 1rem !important;
}

/* Ensure payment modal appears above client details modal */
#add-payment-modal {
    z-index: 999999 !important;
}

#add-payment-modal .modal-content {
    z-index: 999999 !important;
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(112, 187, 36, 0.1);
}

.stripe-info {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.stripe-info i {
    color: var(--accent-primary);
    margin-top: 0.1rem;
}

.stripe-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.form-actions .btn-modern {
    min-width: 120px;
}

/* Empty state styles */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .payment-method-card,
    .payment-history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .payment-method-actions,
    .payment-amount-display {
        align-self: flex-end;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn-modern {
        width: 100%;
    }
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 12px var(--shadow-medium);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 10000;
    max-width: 400px;
    min-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.notification-content i {
    font-size: 1.2rem;
}

.notification-success {
    border-left: 4px solid #2ecc71;
}

.notification-success .notification-content i {
    color: #2ecc71;
}

.notification-error {
    border-left: 4px solid #e74c3c;
}

.notification-error .notification-content i {
    color: #e74c3c;
}

.notification-warning {
    border-left: 4px solid #f39c12;
}

.notification-warning .notification-content i {
    color: #f39c12;
}

.notification-info {
    border-left: 4px solid var(--accent-primary);
}

.notification-info .notification-content i {
    color: var(--accent-primary);
}

/* Loading and Form Display States */
.loading-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.loading-state i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
}

.loading-state p {
    margin: 0;
    font-size: 0.9rem;
}

.form-display {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.empty-state.error {
    color: #e74c3c;
}

.empty-state.error i {
    color: #e74c3c;
}

.stripe-card {
    border-left: 3px solid #6772e5;
}

.stripe-card:hover {
    border-left-color: var(--accent-primary);
}

.add-stripe-card-btn {
    margin-top: 1rem;
}

.view-cards-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.loading {
    text-align: center;
    padding: 1rem;
    color: var(--text-muted);
    font-style: italic;
}

.card-item {
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.stripe-customer-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.view-cards-section {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.view-cards-section .btn-modern {
    flex: 1;
    max-width: 200px;
}

@media (max-width: 768px) {
    .view-cards-section {
        flex-direction: column;
    }
    
    .view-cards-section .btn-modern {
        max-width: none;
    }
}

/* Modernized Cleaning Calculator Layout */
.cleaning-calculator .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.cleaning-calculator .modal-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    margin: 0;
}

.cleaning-calculator .modal-header .close-modal {
    background: transparent;
    border: none;
    color: #666;
    font-size: 1.1rem;
    cursor: pointer;
}

.cleaning-calculator .modal-body {
    padding: 1.25rem;
}

.cleaning-calculator .modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.calculator-sections {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1rem;
}

.calculator-main {
    min-width: 0;
}

.summary-panel {
    background: #fbfbfb;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1rem;
    height: fit-content;
}

.cleaning-option .icon {
    font-size: 1.25rem;
    color: #6c8e6c;
    margin-bottom: 0.5rem;
}

@media (max-width: 960px) {
    .calculator-sections {
        grid-template-columns: 1fr;
    }
    .summary-panel {
        order: 2;
    }
}

/* Subtle elevation for modal */
.cleaning-calculator.modal-content {
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
    border-radius: 14px;
}

/* Refine the add-cleaning button in footer */
.modal-footer .add-cleaning-btn {
    width: auto;
} 

/* Calendar Picker Styles for Add Cleaning Modal */
.calendar-picker {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.calendar-picker .calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.calendar-picker .calendar-nav-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.calendar-picker .calendar-nav-btn:hover {
    background: #e9ecef;
}

.calendar-picker .calendar-title {
    font-weight: 600;
    color: #333;
}

.calendar-picker .calendar-ui {
    padding: 0.5rem;
}

.calendar-picker .calendar-ui table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-picker .calendar-ui th {
    padding: 0.5rem;
    text-align: center;
    font-weight: 600;
    color: #666;
    font-size: 0.85rem;
}

.calendar-picker .calendar-ui td {
    padding: 0.5rem;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.calendar-picker .calendar-ui td:hover:not(.past):not(.booked) {
    background: #f0f8ff;
    transform: scale(1.05);
}

.calendar-picker .calendar-day.selected {
    background: #4CAF50 !important;
    color: white !important;
    font-weight: bold;
}

.calendar-picker .calendar-day {
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-picker .calendar-day:hover:not(.past):not(.booked) {
    background-color: #e3f2fd;
    transform: scale(1.05);
}

.calendar-picker .calendar-day.booked {
    background: #f1f1f1;
    color: #999;
    cursor: not-allowed;
}

.calendar-picker .calendar-day.past {
    color: #ccc;
    cursor: not-allowed;
}

/* Responsive adjustments for calendar picker */
@media (max-width: 768px) {
    .calendar-picker .calendar-ui td {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
    
    .calendar-picker .calendar-ui th {
        padding: 0.4rem;
        font-size: 0.75rem;
    }
    
    .calendar-picker .calendar-header {
        padding: 0.5rem;
    }
    
    .calendar-picker .calendar-title {
        font-size: 0.9rem;
    }
}

/* Modern Time Picker Styles */
.time-picker {
    position: relative;
    width: 100%;
}

.time-picker .time-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    color: #333;
}

.time-picker .time-display:hover {
    border-color: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
}

.time-picker .time-display .time-value {
    font-weight: 500;
}

.time-picker .time-display i {
    color: #666;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.time-picker .time-display:hover i {
    color: #4CAF50;
}

.time-picker .time-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.time-picker .time-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.time-picker .time-slots {
    padding: 0.5rem 0;
}

.time-picker .time-slot {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
}

.time-picker .time-slot:last-child {
    border-bottom: none;
}

.time-picker .time-slot:hover {
    background: #f0f8ff;
    color: #4CAF50;
    font-weight: 500;
}

.time-picker .time-slot:active {
    background: #e8f5e8;
}

/* Scrollbar styling for time dropdown */
.time-picker .time-dropdown::-webkit-scrollbar {
    width: 6px;
}

.time-picker .time-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.time-picker .time-dropdown::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.time-picker .time-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive adjustments for time picker */
@media (max-width: 768px) {
    .time-picker .time-display {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        min-height: 44px; /* Ensure touch target is large enough */
        touch-action: manipulation; /* Improve touch responsiveness */
    }
    
    .time-picker .time-slot {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        min-height: 44px; /* Ensure touch target is large enough */
        touch-action: manipulation; /* Improve touch responsiveness */
    }
    
    .time-picker .time-dropdown {
        max-height: 180px;
        z-index: 10001; /* Ensure dropdown appears above other elements */
    }
}

/* Recurring Cleaning Preview Styles */
.calendar-picker .calendar-day.recurring-first {
    background-color: #4CAF50 !important;
    color: white !important;
    font-weight: bold;
    position: relative;
}

.calendar-picker .calendar-day.recurring-first::after {
    content: '1st';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.6rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 1px 3px;
    border-radius: 2px;
}

.calendar-picker .calendar-day.recurring-subsequent {
    background-color: #2196F3 !important;
    color: white !important;
    font-weight: bold;
    position: relative;
}

.calendar-picker .calendar-day.recurring-subsequent::after {
    content: 'R';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.6rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 1px 3px;
    border-radius: 2px;
}

/* Hover effects for recurring preview days */
.calendar-picker .calendar-day.recurring-first:hover,
.calendar-picker .calendar-day.recurring-subsequent:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Recurring Cleaning Preview Styles for Add Client Calendar */
#add-client-calendar-ui .calendar-day.recurring-first {
    background-color: #4CAF50 !important;
    color: white !important;
    font-weight: bold;
    position: relative;
}

#add-client-calendar-ui .calendar-day.recurring-first::after {
    content: '1st';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.6rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 1px 3px;
    border-radius: 2px;
}

#add-client-calendar-ui .calendar-day.recurring-subsequent {
    background-color: #2196F3 !important;
    color: white !important;
    font-weight: bold;
    position: relative;
}

#add-client-calendar-ui .calendar-day.recurring-subsequent::after {
    content: 'R';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.6rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 1px 3px;
    border-radius: 2px;
}

/* Hover effects for recurring preview days in Add Client Calendar */
#add-client-calendar-ui .calendar-day.recurring-first:hover,
#add-client-calendar-ui .calendar-day.recurring-subsequent:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Add Payment Modal Styles */
.add-payment-modal {
    max-width: 600px;
    width: 90%;
}

.add-payment-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.add-payment-modal .modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.add-payment-modal .close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.add-payment-modal .close-modal:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.add-payment-modal .modal-body {
    padding: 0;
}

.add-payment-modal .form-group {
    margin-bottom: 1.5rem;
}

.add-payment-modal label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.add-payment-modal input,
.add-payment-modal select,
.add-payment-modal textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.add-payment-modal input:focus,
.add-payment-modal select:focus,
.add-payment-modal textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(112, 187, 36, 0.1);
}

.add-payment-modal .amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.add-payment-modal .currency-symbol {
    position: absolute;
    left: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    z-index: 1;
}

.add-payment-modal .amount-input-wrapper input {
    padding-left: 2rem;
}

.add-payment-modal .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

/* CRM Dashboard Styles */
.crm-dashboard {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-light);
    margin-bottom: 2rem;
    overflow: hidden;
}

.crm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.crm-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.crm-actions {
    display: flex;
    gap: 1rem;
}

.crm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-secondary);
}

.crm-stat-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px var(--shadow-light);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-primary);
}

.crm-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--shadow-medium);
}

.crm-stat-card.priority-follow-ups {
    border-left-color: #dc3545;
}

.crm-stat-card.inactive-clients {
    border-left-color: #ffc107;
}

.crm-stat-card.cancelled-clients {
    border-left-color: #6c757d;
}

.crm-stat-card.re-engagement {
    border-left-color: #28a745;
}

.crm-stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.crm-stat-card.priority-follow-ups .stat-icon {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.crm-stat-card.inactive-clients .stat-icon {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.crm-stat-card.cancelled-clients .stat-icon {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.crm-stat-card.re-engagement .stat-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.crm-stat-card .stat-content h3 {
    margin: 0 0 0.25rem 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.crm-stat-card .stat-content p {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    color: var(--text-primary);
}

.crm-stat-card .stat-content small {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.crm-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.crm-section {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow-light);
    overflow: hidden;
}

.crm-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
}

.crm-section .section-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.priority-list,
.cancelled-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
}

.priority-item,
.cancelled-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--accent-primary);
    transition: all 0.3s ease;
}

.priority-item:hover,
.cancelled-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.priority-item.urgent {
    border-left-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.priority-item.high {
    border-left-color: #fd7e14;
    background: rgba(253, 126, 20, 0.1);
}

.priority-item.medium {
    border-left-color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

.priority-item.low {
    border-left-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.priority-item .item-info h4,
.cancelled-item .item-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.priority-item .item-info p,
.cancelled-item .item-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.priority-item .item-actions,
.cancelled-item .item-actions {
    display: flex;
    gap: 0.5rem;
}

.priority-item .btn-small,
.cancelled-item .btn-small {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.priority-item .btn-small.primary,
.cancelled-item .btn-small.primary {
    background: var(--accent-primary);
    color: white;
}

.priority-item .btn-small.secondary,
.cancelled-item .btn-small.secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.priority-item .btn-small:hover,
.cancelled-item .btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--shadow-medium);
}

/* SMS Conversation Styles */
.sms-conversation-container {
    max-height: 400px;
    display: flex;
    flex-direction: column;
}

.sms-messages {
    flex: 1;
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.sms-message {
    display: flex;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.sms-message.outbound {
    justify-content: flex-end;
}

.sms-message.inbound {
    justify-content: flex-start;
}

.sms-message-bubble {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
}

.sms-message.outbound .sms-message-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.sms-message.inbound .sms-message-bubble {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.sms-message-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    text-align: center;
}

.sms-message.outbound .sms-message-time {
    text-align: right;
}

.sms-message.inbound .sms-message-time {
    text-align: left;
}

.sms-input-container {
    border-top: 2px solid var(--border-color);
    padding-top: 1rem;
}

.sms-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.sms-input-wrapper textarea {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    resize: vertical;
    min-height: 60px;
    max-height: 120px;
}

.sms-input-wrapper textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(112, 187, 36, 0.1);
}

.sms-input-wrapper button {
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

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

.sms-actions .btn-icon {
    padding: 0.5rem;
    border: none;
    border-radius: 6px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sms-actions .btn-icon:hover {
    background: var(--accent-primary);
    color: white;
}

.sms-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.sms-no-messages {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-style: italic;
}

.sms-error {
    text-align: center;
    padding: 1rem;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
    margin: 1rem 0;
}

/* Communication History Styles */
.communication-history {
    max-height: 300px;
    overflow-y: auto;
}

.communication-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--accent-primary);
    transition: all 0.3s ease;
}

.communication-item:hover {
    background: var(--bg-tertiary);
}

.communication-item .comm-info {
    flex: 1;
}

.communication-item .comm-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.communication-item .comm-type {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.communication-item .comm-type.phone {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.communication-item .comm-type.email {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
}

.communication-item .comm-type.text {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.communication-item .comm-type.messenger {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.communication-item .comm-type.follow-up {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.communication-item .comm-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.communication-item .comm-direction {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.communication-item .comm-outcome {
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

.communication-item .comm-notes {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.communication-item .comm-actions {
    display: flex;
    gap: 0.5rem;
}

/* Add Communication Modal Styles */
.add-communication-modal {
    max-width: 600px;
    width: 90%;
}

.add-communication-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.add-communication-modal .modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.add-communication-modal .close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.add-communication-modal .close-modal:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.add-communication-modal .modal-body {
    padding: 0;
}

.add-communication-modal .form-group {
    margin-bottom: 1.5rem;
}

.add-communication-modal label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.add-communication-modal input,
.add-communication-modal select,
.add-communication-modal textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.add-communication-modal input:focus,
.add-communication-modal select:focus,
.add-communication-modal textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(112, 187, 36, 0.1);
}

.add-communication-modal .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

/* Responsive Design for CRM Dashboard */
@media (max-width: 768px) {
    .crm-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .crm-sections {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .crm-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .crm-actions {
        width: 100%;
        justify-content: center;
    }
    
    .priority-item,
    .cancelled-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .priority-item .item-actions,
    .cancelled-item .item-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Search Container */
.search-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

/* Navigation Menu Toggle Styles */
.nav-menu-toggle {
    position: relative;
    z-index: 100000;
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-menu-toggle:hover {
    background: transparent;
    transform: scale(1.05);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
    height: 16px;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: #1d1d1f;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Navigation Selector Dropdown */
.nav-selector {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 8px;
    margin-top: 8px;
    z-index: 9999;
    display: none;
    flex-direction: column;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.nav-selector.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Navigation Links */
.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 14px;
}

.nav-link:hover {
    background: rgba(0, 115, 230, 0.1);
    color: #0073ea;
    transform: translateX(4px);
}

.nav-link.active {
    background: rgba(0, 115, 230, 0.15);
    color: #0073ea;
    font-weight: 600;
}

.nav-link i {
    width: 16px;
    text-align: center;
    font-size: 16px;
}

/* Additional Mobile Improvements for Very Small Screens */
@media (max-width: 480px) {
    
    .top-bar {
        padding: 0.75rem;
        gap: 0.5rem;
        min-height: 50px;
    }
    
    .mobile-search-container {
        display: none;
    }
    
    .top-bar .search-bar {
        width: calc(100% - 60px);
        margin-left: auto;
        margin-right: 0;
        padding: 0.5rem 0.75rem;
    }
    
    /* Ensure CRM Dashboard is hidden on very small screens */
    .crm-dashboard,
    .crm-header,
    .crm-stats-grid {
        display: none !important;
    }
    
    .client-details-modal {
        width: 100%;
        margin: 0.5rem auto;
        max-height: 98vh;
        border-radius: 12px 12px 0 0;
    }

    .client-header-modern {
        padding: 1rem 2.5rem 1rem 1rem;
    }

    .client-content-grid {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .schedule-header h4 {
        font-size: 0.85rem;
    }

    .cleaning-list.modern {
        max-height: none;
        gap: 0.4rem;
        overflow: visible;
    }

    .cleaning-item {
        padding: 0.75rem !important;
        font-size: 0.85rem;
        gap: 0.75rem !important;
        margin-bottom: 0.5rem;
    }

    .cleaning-item .payment-status-btn {
        max-width: 100px !important;
        font-size: 0.75rem !important;
        padding: 0.5rem 0.75rem !important;
    }

    .cleaning-item .cleaning-type {
        font-size: 0.75rem !important;
    }

    .action-buttons-row .btn-modern {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .card-header h3 {
        font-size: 1rem;
    }

    .card-content {
        padding: 0.75rem;
    }

    .input-field input,
    .input-field select,
    .input-field textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}

/* Contact Information Section - Hidden by default */
.contact-info-section {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
    display: none;
}

.contact-info-section.show {
    opacity: 1;
    transform: translateY(0);
    max-height: 1000px;
    overflow: visible;
    margin: 0 0 1.5rem 0;
    padding: 0;
    border: 1px solid var(--border-color);
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure card content is hidden when collapsed */
.contact-info-section .card-header,
.contact-info-section .card-content {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-info-section.show .card-header,
.contact-info-section.show .card-content {
    opacity: 1;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

/* Edit Contact Button Styling */
#edit-contact {
    background: rgba(0, 123, 255, 0.9);
    color: white;
    transition: all 0.2s ease;
}

#edit-contact:hover {
    background: rgba(0, 123, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

#edit-contact.active {
    background: rgba(112, 187, 36, 0.9);
    color: white;
}

/* Enhanced Client Card with CRM Status */
.client-card {
    position: relative;
    border-left: 4px solid var(--accent-primary);
}

.client-card.status-active {
    border-left-color: #28a745;
}

.client-card.status-inactive {
    border-left-color: #ffc107;
}

.client-card.status-cancelled {
    border-left-color: #6c757d;
}

.client-card.status-follow-up {
    border-left-color: #dc3545;
}

.client-card.status-re-engagement {
    border-left-color: #fd7e14;
}

.client-card .crm-status-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.client-card .crm-status-badge.status-active {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.client-card .crm-status-badge.status-inactive {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.client-card .crm-status-badge.status-cancelled {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

.client-card .crm-status-badge.status-follow-up {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.client-card .crm-status-badge.status-re-engagement {
    background: rgba(253, 126, 20, 0.2);
    color: #fd7e14;
}

.client-card .last-contact-info {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.client-card .follow-up-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.client-card .follow-up-indicator.urgent {
    background: #dc3545;
    animation: pulse 2s infinite;
}

.client-card .follow-up-indicator.high {
    background: #fd7e14;
}

.client-card .follow-up-indicator.medium {
    background: #ffc107;
}

.client-card .follow-up-indicator.low {
    background: #28a745;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Add Client Form Calendar Specific Styles */
#add-client-form .calendar-picker {
    margin-bottom: 1rem;
}

#add-client-form .calendar-picker .calendar-ui {
    max-width: 100%;
    overflow-x: auto;
}

#add-client-form .calendar-picker .calendar-ui table {
    width: 100%;
    min-width: 280px;
}

/* Add Client Calendar Header - Make it more compact */
#add-client-form .calendar-picker .calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #e9ecef;
}

/* Add Client Calendar Navigation Buttons - Make them smaller */
#add-client-form .calendar-picker .calendar-nav-btn {
    background: #fff;
    border: 1px solid #ddd;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    color: #666;
    min-width: 32px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#add-client-form .calendar-picker .calendar-nav-btn:hover {
    background: #e9ecef;
    border-color: #4CAF50;
    color: #4CAF50;
}

/* Add Client Calendar Title - Make it smaller */
#add-client-form .calendar-picker .calendar-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin: 0;
}

/* Add Client Calendar Days - Make them more compact */
#add-client-form .calendar-picker .calendar-ui td {
    padding: 6px 4px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 13px;
    min-width: 28px;
    height: 28px;
    line-height: 1;
}

#add-client-form .calendar-picker .calendar-ui th {
    padding: 6px 4px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    background: #f8f9fa;
}

#add-client-form .calendar-picker .calendar-ui td:hover:not(.past):not(.booked) {
    background: #f0f8ff;
    transform: scale(1.05);
}

#add-client-form .calendar-picker .calendar-day.selected {
    background: #4CAF50 !important;
    color: white !important;
    font-weight: bold;
}

#add-client-form .time-picker {
    margin-bottom: 1rem;
}

#add-client-form .time-picker .time-dropdown {
    max-height: 200px;
    overflow-y: auto;
}

/* Ensure calendar fits properly in the form */
#add-client-form .form-group .calendar-picker,
#add-client-form .form-group .time-picker {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    #add-client-form .calendar-picker .calendar-ui table {
        min-width: 250px;
        font-size: 0.8rem;
    }
    
    #add-client-form .calendar-picker .calendar-header {
        flex-direction: row;
        gap: 0.5rem;
        padding: 6px 8px;
    }
    
    #add-client-form .calendar-picker .calendar-nav-btn {
        font-size: 12px;
        padding: 3px 6px;
        min-width: 28px;
        height: 24px;
    }
    
    #add-client-form .calendar-picker .calendar-title {
        font-size: 12px;
    }
    
    #add-client-form .calendar-picker .calendar-ui td {
        font-size: 11px;
        min-width: 24px;
        height: 24px;
        padding: 4px 2px;
    }
    
    #add-client-form .calendar-picker .calendar-ui th {
        font-size: 10px;
        padding: 4px 2px;
    }
    
    #add-client-form .time-picker .time-dropdown {
        max-height: 150px;
    }
}

/* Client Tags Styles */
.client-tags-display {
    min-height: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
}

.client-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: #3498db;
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    animation: tagFadeIn 0.3s ease;
}

.client-tag.priority-high {
    background: #e74c3c;
}

.client-tag.priority-medium {
    background: #f39c12;
}

.client-tag.priority-low {
    background: #27ae60;
}

.client-tag.custom-tag {
    background: #9b59b6;
}

.client-tag .remove-tag {
    background: none;
    border: none;
    color: white;
    font-size: 0.7rem;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.client-tag .remove-tag:hover {
    background: rgba(255, 255, 255, 0.2);
}

.no-tags-message {
    color: #bdc3c7;
    font-style: italic;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    min-height: 40px;
}

/* Tag Management Section */
.tag-management-section {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: 1rem;
}

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

.tag-management-header h4 {
    margin: 0;
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.close-tag-management {
    background: #e74c3c;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background-color 0.2s ease;
}

.close-tag-management:hover {
    background: #c0392b;
}

.quick-tags-section {
    margin-bottom: 1.5rem;
}

.quick-tags-section h5 {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.client-quick-tags-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.client-quick-tag-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #2c3e50;
    text-align: left;
    white-space: nowrap;
}

.client-quick-tag-btn:hover {
    background: #e9ecef;
    border-color: #3498db;
    transform: translateY(-1px);
}

.client-quick-tag-btn.selected {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.client-quick-tag-btn i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.custom-tag-section-client h5 {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.client-custom-tag-input-group {
    display: flex;
    gap: 0.5rem;
}

.client-custom-tag-input-group input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.client-custom-tag-input-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.manage-tags-btn {
    background: #3498db;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.manage-tags-btn:hover {
    background: #2980b9;
    transform: scale(1.05);
}

/* Animation for tag addition */
@keyframes tagFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Responsive for Client Tags */
@media (max-width: 768px) {
    .client-quick-tags-grid {
        grid-template-columns: 1fr;
    }
    
    .client-custom-tag-input-group {
        flex-direction: column;
    }
    
    .tag-management-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Client Notes Display Styles */
.notes-display-container {
    padding: 0;
}

.notes-list-display {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

.note-item-display {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.note-item-display:hover {
    box-shadow: 0 2px 8px var(--shadow-light);
    transform: translateY(-1px);
}

.note-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.note-text {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    word-wrap: break-word;
}

.note-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    gap: 0.5rem;
}

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

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

.note-source {
    background: var(--accent-primary);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.note-source[data-source="calendar"] {
    background: #007bff;
}

.note-source[data-source="client"] {
    background: var(--accent-primary);
}

.no-notes-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
}

.no-notes-message i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.no-notes-message p {
    margin: 0;
    font-size: 0.9rem;
}

/* Dark theme adjustments for notes - removed, page stays in light mode */
/*
[data-theme="dark"] .note-item-display {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

[data-theme="dark"] .no-notes-message {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}
*/

/* Notes Feature Styles */
.add-note-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.add-note-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
}

.add-note-form {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.note-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.note-form-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.close-note-form {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-note-form:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.note-form-content textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 1rem;
}

.note-form-content textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(112, 187, 36, 0.2);
}

.note-form-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.note-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    position: relative;
    transition: all 0.2s ease;
}

.note-item:hover {
    box-shadow: 0 2px 8px var(--shadow-light);
    transform: translateY(-1px);
}

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

.note-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.note-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.note-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.note-action-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.note-action-btn.edit:hover {
    color: var(--accent-primary);
}

.note-action-btn.delete:hover {
    color: #dc3545;
}

.note-content {
    color: var(--text-primary);
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.note-content.editing {
    display: none;
}

.note-edit-form {
    display: none;
    margin-top: 0.5rem;
}

.note-edit-form.active {
    display: block;
}

.note-edit-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 60px;
    margin-bottom: 0.5rem;
}

.note-edit-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Dark theme adjustments for notes feature - removed, page stays in light mode */
/*
[data-theme="dark"] .add-note-form {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

[data-theme="dark"] .note-item {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

[data-theme="dark"] .note-form-content textarea,
[data-theme="dark"] .note-edit-form textarea {
    background: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .note-form-content textarea:focus,
[data-theme="dark"] .note-edit-form textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(112, 187, 36, 0.2);
}
*/

/* Note Source Badge Styles */
.note-source-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
}

.note-source-badge.client {
    background: var(--accent-primary);
    color: white;
}

.note-source-badge.cleaning {
    background: #6c757d;
    color: white;
}

/* Dark theme note source badges - removed, page stays in light mode */
/*
[data-theme="dark"] .note-source-badge.client {
    background: var(--accent-primary);
    color: white;
}

[data-theme="dark"] .note-source-badge.cleaning {
    background: #adb5bd;
    color: #212529;
}
*/