/* Custom styles for Cleenie platform */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap');

/* Job completion updates styling */
.bg-light-success {
    background-color: #d4edda !important;
    border-color: #c3e6cb !important;
}

/* Mobile complete button styling */
@media (max-width: 767px) {
    .btn.d-md-none {
        min-width: 40px !important;
        max-width: 50px !important;
        padding: 0.25rem 0.5rem !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
    }
    
    .btn.d-md-none .spinner-border-sm {
        width: 1rem !important;
        height: 1rem !important;
        margin: 0 !important;
    }
}

/* Desktop-specific month picker styling */
@media (min-width: 769px) {
    .desktop-month-picker {
        position: relative !important;
        z-index: 9999 !important;
        width: 220px !important;
        max-width: 220px !important;
    }
    
    .desktop-month-picker input[type="month"] {
        position: relative !important;
        z-index: 10000 !important;
    }
    
    .desktop-month-picker .input-group-text {
        position: relative !important;
        z-index: 10000 !important;
    }
    
    /* Ensure month picker appears above other content */
    .desktop-month-picker input[type="month"]::-webkit-calendar-picker-indicator {
        z-index: 10001 !important;
    }
    
    /* Ensure parent container doesn't clip the dropdown */
    .desktop-month-picker input[type="month"]:focus,
    .desktop-month-picker input[type="month"]:active {
        overflow: visible !important;
    }
}

/* Mobile month picker - restore original compact styling */
@media (max-width: 768px) {
    .desktop-month-picker {
        width: 100% !important;
        max-width: 200px !important;
        position: static !important;
        z-index: auto !important;
    }
    
    .desktop-month-picker input[type="month"] {
        position: static !important;
        z-index: auto !important;
        font-size: 14px !important;
    }
    
    .desktop-month-picker .input-group-text {
        position: static !important;
        z-index: auto !important;
    }
    
    /* Mobile-specific layout adjustments */
    #reports-analytics .month-filter-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
    
    #reports-analytics .month-filter-container label {
        margin-bottom: 0.25rem !important;
    }
    
    #reports-analytics .month-filter-container .desktop-month-picker {
        align-self: flex-start !important;
    }
}

/* Custom month picker fallback styling for browsers that don't support input[type="month"] */
.custom-month-picker {
    font-family: inherit;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.custom-month-picker:hover {
    border-color: #86b7fe;
}

.custom-month-picker:focus-within {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Ensure input-group layout is maintained when using custom month picker */
.input-group .custom-month-picker + .input-group-text {
    border-left: none;
    border-radius: 0 0.375rem 0.375rem 0;
}

.month-dropdown {
    animation: fadeIn 0.15s ease-in-out;
}

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

.month-dropdown select {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    background: white;
    color: #333;
    /* Keep default appearance but ensure proper styling */
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
}

.month-dropdown select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: 0;
}

/* Ensure custom month picker stays above other elements */
@media (min-width: 769px) {
    .custom-month-picker {
        width: 180px !important;
        max-width: 180px !important;
        flex: 1 !important;
    }
    
    .custom-month-picker .month-dropdown {
        z-index: 10001 !important;
        width: 180px;
        min-width: 180px;
    }
}

/* Cleenie Header Bar */
.cleenie-header-bar {
    background: white;
    color: #333;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e9ecef;
}

.cleenie-brand {
    display: flex;
    align-items: center;
}

.cleenie-header-logo {
    height: 32px;
    width: auto;
    /* Remove filter for white background */
}

.cleenie-header-logo-large {
    height: 65px;
    width: auto;
    /* Remove filter for white background */
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cleenie-header-logo-large:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.cleenie-brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
}

.cleenie-menu-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.cleenie-menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Desktop Sidebar Layout */
.desktop-sidebar-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-nav-menu {
    background: #5271FF;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-menu .nav-link {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

.mobile-nav-menu .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-logo {
    max-height: 35px;
    max-width: 140px;
    object-fit: contain;
    margin-right: 8px;
}

.login-logo {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
}

/* CSS Custom Properties - Light Theme Only */
:root {
    --bs-primary: #4a90e2;
    --bs-primary-rgb: 74, 144, 226;
    --bs-secondary: #6c757d;
    --bs-success: #28a745;
    --bs-info: #17a2b8;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #343a40;
    
    /* Fixed light theme variables */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #e9ecef;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
    --shadow-heavy: rgba(0, 0, 0, 0.15);
}

/* Body and background */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation improvements */
.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
    color: #007bff !important;
}

.navbar-nav .nav-link {
    color: #495057 !important;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    color: #007bff !important;
}

.navbar {
    border-bottom: 1px solid #e9ecef;
}

/* Card styling - theme aware */
.card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-secondary);
    box-shadow: 0 2px 10px var(--shadow-light);
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-out;
    color: var(--text-primary);
}

.card:hover {
    box-shadow: 0 4px 20px var(--shadow-medium);
}

/* Modern Dashboard Styling */
.dashboard-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.table-modern {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.table-modern thead th {
    background-color: #4a90e2;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    color: white;
    padding: 12px 16px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: none;
}

.table-modern tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
    background: white;
}

.table-modern tbody tr:hover td {
    background-color: #f8f9fa;
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

/* Cleenie Brand Styling - Headers */
.card-header,
.cleenie-header {
    background-color: #4a90e2 !important;
    color: #FFFFFF !important;
    border-radius: 12px 12px 0 0;
    border: none;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    padding: 1rem 1.5rem;
}

/* Legacy table headers for backwards compatibility */
.table th {
    background-color: #4a90e2 !important;
    color: #FFFFFF !important;
    border-radius: 0;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

/* Button improvements - blue theme */
.btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #4a90e2;
    border-color: #4a90e2;
}

.btn-primary:hover {
    background-color: #3b7bd4;
    border-color: #3b7bd4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-outline-primary {
    color: #4a90e2;
    border-color: #4a90e2;
}

.btn-outline-primary:hover {
    background-color: #4a90e2;
    border-color: #4a90e2;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Table improvements - theme aware */
.table {
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.table th {
    border-top: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background-color: var(--bg-primary);
}

/* Badge improvements */
.badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
}

.badge.bg-info {
    background-color: #17a2b8 !important;
}

.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-primary {
    background-color: #007bff !important;
}

/* Alert improvements */
.alert {
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Form improvements - theme aware */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    border-color: #007bff;
    background-color: var(--bg-secondary);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Modal improvements - theme aware */
.modal-content {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow-heavy);
    background-color: var(--bg-secondary);
}

.modal-header {
    background-color: #007bff;
    color: white;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
}

.modal-body {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 12px 12px;
}

/* Modern dashboard stats cards */
.stats-card {
    background-color: white;
    color: #333;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.stats-card.success {
    background-color: #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.stats-card.warning {
    background-color: #ffc107;
    color: #212529;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.stats-card.info {
    background-color: #17a2b8;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.2);
}

.stats-card h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
}

.stats-card p {
    margin: 5px 0 0 0;
    opacity: 0.9;
}

/* Clean card improvements */
.card.border-primary {
    border-color: #4a90e2 !important;
    background: white;
}

.card.border-warning {
    border-color: #ffc107 !important;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05), rgba(255, 193, 7, 0.02));
}

.card.border-info {
    border-color: #17a2b8 !important;
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.05), rgba(23, 162, 184, 0.02));
}

.card.border-success {
    border-color: #28a745 !important;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(40, 167, 69, 0.02));
}

/* Stats cards icons */
.card-body i[data-feather] {
    color: #4a90e2;
    opacity: 0.8;
}

/* Navigation dropdown improvements - theme aware */
.dropdown-menu {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.dropdown-item {
    border-radius: 6px;
    margin: 0.125rem;
    transition: all 0.15s ease-in-out;
    color: var(--text-primary);
}

.dropdown-item:hover {
    background-color: var(--bg-primary);
    color: #007bff;
}

.dropdown-item:focus {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Container improvements */
.container-fluid {
    padding: 20px;
}

/* Professional color scheme for UK business */
:root {
    --bs-primary: #4a90e2;
    --bs-primary-rgb: 74, 144, 226;
    --bs-secondary: #6c757d;
    --bs-success: #28a745;
    --bs-info: #17a2b8;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #343a40;
}

/* Modern dashboard section styling */
.dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    margin-bottom: 24px;
    overflow: hidden;
}

.cleenie-header {
    background-color: #4a90e2;
    color: white;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
}

.table-modern thead th {
    background-color: #4a90e2;
    color: white;
    border: none;
    font-weight: 600;
    padding: 12px;
    font-size: 0.9rem;
}

.table-modern tbody td {
    padding: 12px;
    border-bottom: 1px solid #f8f9fa;
    vertical-align: middle;
}

/* Overview cards styling */
.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.overview-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.overview-card i {
    color: #4a90e2;
    margin-bottom: 12px;
}

.overview-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #4a90e2;
    margin: 8px 0;
}

.overview-card p {
    color: #666;
    font-weight: 500;
    margin: 0;
}

/* KPI boxes styling */
.kpi-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.kpi-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.kpi-box:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.kpi-box i {
    color: #4a90e2;
    margin-bottom: 12px;
}

.kpi-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4a90e2;
    margin: 8px 0;
}

.kpi-label {
    color: #666;
    font-weight: 500;
    margin: 0;
    font-size: 0.9rem;
}

/* Loading states */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Icon spacing */
[data-feather] {
    vertical-align: text-bottom;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .container, .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .stats-card h3 {
        font-size: 1.5rem;
    }
    
    .container-fluid {
        padding: 10px;
    }
    
    .card {
        margin-bottom: 15px;
    }
}

/* Footer - theme aware */
footer {
    margin-top: auto;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    color: var(--text-secondary);
}

/* Mobile footer adjustments */
@media (max-width: 991px) {
    footer {
        margin-bottom: 80px; /* Push footer above mobile bottom nav */
    }
}

/* Removed theme toggle button - light theme only */

/* Calendar theme adaptations */
.calendar-header {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.calendar-grid {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

.calendar-header-day {
    background: #4a90e2 !important;
    color: white !important;
    border-bottom: 1px solid var(--border-color);
}

.calendar-day {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.calendar-day:hover {
    background: var(--bg-primary);
}

.calendar-day.other-month {
    background: var(--bg-primary);
    color: var(--text-secondary);
}

.calendar-day.today {
    background: rgba(0, 123, 255, 0.1);
    border: 2px solid #007bff;
}

/* Smooth transitions for interactions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Override Bootstrap navbar colors for better theme integration */
.navbar-light .navbar-brand,
.navbar-dark .navbar-brand {
    color: #007bff !important;
}

.navbar-light .navbar-nav .nav-link,
.navbar-dark .navbar-nav .nav-link {
    color: var(--text-primary) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:hover {
    color: #007bff !important;
}

/* Responsive Navigation - Sidebar on Desktop, Bottom on Mobile */

/* Desktop Sidebar Navigation */
@media (min-width: 992px) {
    /* Hide mobile bottom nav on desktop */
    .bottom-nav {
        display: none;
    }
    
    /* Fixed icon-only sidebar */
    .desktop-sidebar {
        position: fixed;
        top: 70px; /* Below the header */
        left: 0;
        bottom: 0;
        width: 60px;
        background-color: #4a90e2;
        border-right: none;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow: visible; /* Allow tooltips to show */
    }
    
    .desktop-sidebar-container {
        display: flex;
        flex-direction: column;
        padding: 20px 0;
        gap: 4px;
        height: 100%;
    }
    
    .desktop-sidebar-item {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: rgba(255, 255, 255, 0.8);
        transition: all 0.3s ease;
        padding: 12px 0;
        margin: 0 8px;
        border-radius: 8px;
        text-align: center;
        height: 48px;
        width: 44px;
    }
    
    /* Hide text spans in fixed sidebar */
    .desktop-sidebar-item span {
        display: none;
    }
    
    .desktop-sidebar-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
        text-decoration: none;
    }
    
    .desktop-sidebar-item.active {
        background-color: rgba(255, 255, 255, 0.2);
        color: white;
    }
    
    /* Tooltip styling */
    .desktop-sidebar-item::after {
        content: attr(data-tooltip);
        position: absolute;
        left: 60px;
        top: 50%;
        transform: translateY(-50%);
        background-color: #333;
        color: white;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 14px;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1001;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .desktop-sidebar-item::before {
        content: '';
        position: absolute;
        left: 55px;
        top: 50%;
        transform: translateY(-50%);
        border: 5px solid transparent;
        border-right-color: #333;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1001;
    }
    
    .desktop-sidebar-item:hover::after,
    .desktop-sidebar-item:hover::before {
        opacity: 1;
        visibility: visible;
    }
    
    .desktop-sidebar-item i {
        width: 24px;
        height: 24px;
        margin: 0;
    }
    
    .desktop-sidebar-item span {
        display: none;
    }
    
    /* Tooltip for sidebar items */
    .desktop-sidebar-item::after {
        content: attr(data-tooltip);
        position: absolute;
        left: 70px;
        top: 50%;
        transform: translateY(-50%);
        background-color: #333;
        color: white;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 0.875rem;
        font-weight: 500;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1001;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .desktop-sidebar-item:hover::after {
        opacity: 1;
        visibility: visible;
    }
    
    /* Sidebar toggle button */
    .sidebar-toggle {
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1051;
        background-color: rgba(255, 255, 255, 0.1);
        border: none;
        border-radius: 8px;
        padding: 8px 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        color: white;
    }
    
    .sidebar-toggle:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
    
    /* Adjust main content for fixed sidebar */
    .main-content {
        margin-left: 60px;
        margin-top: 0;
        padding: 0;
        min-height: calc(100vh - 70px);
        background-color: #f8f9fa;
    }
    
    .content-container {
        padding: 20px;
    }
    
    /* Fix header positioning */
    .cleenie-header-bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        height: 70px;
        display: flex;
        align-items: center;
    }
    
    /* Adjust body padding for fixed header */
    body {
        padding-top: 70px;
    }
}

/* Mobile Bottom Navigation */
@media (max-width: 991px) {
    /* Hide desktop elements on mobile */
    .desktop-sidebar {
        display: none !important;
    }
    
    .sidebar-toggle {
        display: none !important;
    }
    
    /* Reset body padding for mobile */
    body {
        padding-top: 0 !important;
    }
    
    /* Mobile header stays sticky */
    .cleenie-header-bar {
        position: sticky;
        top: 0;
        z-index: 1030;
    }
    
    /* Mobile main content adjustments */
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
        min-height: auto;
    }
    
    .content-container {
        padding: 1rem;
        padding-bottom: 150px; /* Space for bottom nav (70px) + footer (80px) */
    }
    
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #4a90e2;
        border-top: none;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        height: 70px;
    }

    .bottom-nav-container {
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 100%;
        max-width: 600px;
        margin: 0 auto;
        padding: 0 10px;
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: rgba(255, 255, 255, 0.8);
        transition: all 0.3s ease;
        padding: 8px 12px;
        border-radius: 8px;
        text-align: center;
        flex: 1;
        max-width: 80px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .bottom-nav-item:hover,
    .bottom-nav-item:focus {
        color: white;
        text-decoration: none;
        background-color: rgba(255, 255, 255, 0.1);
    }

    .bottom-nav-item.active {
        color: white;
        background-color: rgba(255, 255, 255, 0.2);
    }

    .bottom-nav-item i {
        width: 20px;
        height: 20px;
        margin-bottom: 4px;
    }

    .bottom-nav-item span {
        font-size: 0.75rem;
        font-weight: 500;
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-content {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background-color: white;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .mobile-menu-overlay.active .mobile-menu-content {
        transform: translateX(0);
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        border-bottom: 1px solid #e9ecef;
        background-color: #f8f9fa;
    }

    .mobile-menu-header h5 {
        margin: 0;
        font-weight: 600;
    }

    .mobile-menu-close {
        background: none;
        border: none;
        padding: 0.5rem;
        border-radius: 6px;
        color: #6c757d;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .mobile-menu-close:hover {
        background-color: #e9ecef;
    }

    .mobile-menu-items {
        padding: 1rem 0;
    }

    .mobile-menu-item {
        display: flex;
        align-items: center;
        padding: 0.75rem 1rem;
        text-decoration: none;
        color: #333;
        transition: background-color 0.2s ease;
        border-bottom: 1px solid #f1f3f4;
    }

    .mobile-menu-item:hover {
        background-color: #f8f9fa;
        color: #333;
        text-decoration: none;
    }

    .mobile-menu-item i {
        width: 20px;
        height: 20px;
        margin-right: 0.75rem;
    }

    .mobile-menu-divider {
        margin: 0.5rem 1rem;
        border-color: #e9ecef;
    }

    /* Quick Add Mobile Menu */
    .quick-add-mobile-menu {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .quick-add-mobile-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .quick-add-mobile-content {
        background-color: white;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        max-height: 70vh;
        overflow-y: auto;
    }

    .quick-add-mobile-menu.active .quick-add-mobile-content {
        transform: translateY(0);
    }

    .quick-add-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        border-bottom: 1px solid #e9ecef;
    }

    .quick-add-mobile-header h5 {
        margin: 0;
        font-weight: 600;
    }

    .quick-add-mobile-close {
        background: none;
        border: none;
        padding: 0.5rem;
        border-radius: 6px;
        color: #6c757d;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .quick-add-mobile-close:hover {
        background-color: #e9ecef;
    }

    .quick-add-mobile-items {
        padding: 1rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .quick-add-mobile-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        text-decoration: none;
        color: #333;
        background-color: #f8f9fa;
        border-radius: 12px;
        transition: all 0.2s ease;
        text-align: center;
    }

    .quick-add-mobile-item:hover {
        background-color: #e9ecef;
        color: #333;
        text-decoration: none;
        transform: translateY(-2px);
    }

    .quick-add-mobile-item i {
        width: 24px;
        height: 24px;
        margin-bottom: 0.5rem;
        color: #4a90e2;
    }

    .quick-add-mobile-item span {
        font-size: 0.875rem;
        font-weight: 500;
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: rgba(255, 255, 255, 0.8);
        transition: all 0.3s ease;
        padding: 8px 12px;
        border-radius: 12px;
        min-width: 60px;
        text-align: center;
    }

    .bottom-nav-item i {
        width: 20px;
        height: 20px;
        margin-bottom: 4px;
    }

    .bottom-nav-item span {
        font-size: 0.75rem;
        font-weight: 500;
        line-height: 1;
    }
    
    /* Mobile specific adjustments */
    main {
        padding-bottom: 80px !important;
    }
}

/* Common styles for both layouts */
.bottom-nav-item:hover {
    color: white;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.1);
}

.bottom-nav-item.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Extra small mobile screens */
@media (max-width: 576px) {
    .bottom-nav-item {
        min-width: 50px;
        padding: 6px 8px;
    }
    
    .bottom-nav-item span {
        font-size: 0.7rem;
    }
    
    .bottom-nav-item i {
        width: 18px;
        height: 18px;
    }
}

/* Dashboard Overview Cards */
.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.overview-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow-light);
}

.overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--shadow-medium);
    border-color: #5271FF;
}

.overview-card h3 {
    color: #5271FF;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.overview-card p {
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

.overview-card i {
    color: #5271FF;
    margin-bottom: 0.5rem;
}

/* Header Search Bar */
.header-search-container {
    position: relative;
    width: 300px;
}

.header-search-input {
    width: 100%;
    padding: 8px 16px 8px 40px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.header-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    width: 18px;
    height: 18px;
}

.header-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-top: 4px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1060;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
}

.header-search-results.show {
    display: block;
}

/* Header Search Toggle (Mobile) */
.header-search-toggle {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.header-search-toggle:hover {
    background: #f8f9fa;
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
}

.mobile-search-overlay.show {
    display: block;
}

.mobile-search-container {
    background: white;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.mobile-search-header {
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
    font-size: 16px;
}

.mobile-search-input:focus {
    outline: none;
    border-color: #4a90e2;
    background: white;
}

.mobile-search-close {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
}

.mobile-search-results {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* Search Results Styling */
.search-results-section {
    margin-bottom: 24px;
}

.search-results-header {
    font-size: 14px;
    font-weight: 600;
    color: #4a90e2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e9ecef;
}

.search-result-item {
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: 1px solid transparent;
    margin-bottom: 4px;
}

.search-result-item:hover {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.search-result-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
}

.search-result-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 4px;
}

.search-result-meta {
    font-size: 12px;
    color: #adb5bd;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-result-badge {
    background: #4a90e2;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.search-no-results {
    text-align: center;
    color: #6c757d;
    padding: 32px 16px;
}

.search-no-results i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Header Quick Add Button */
.header-quick-add-btn {
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.3);
}

.header-quick-add-btn:hover {
    background: #357abd;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.header-quick-add-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.quick-add-menu {
    position: fixed;
    top: 70px;
    right: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 220px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 10px 30px var(--shadow-heavy);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1050;
}

.quick-add-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.clickable-job {
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 8px;
    padding: 12px;
    margin: 2px 0;
}

.clickable-job:hover {
    background-color: var(--hover-bg);
}

.clickable-job-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.clickable-job-row:hover {
    background-color: var(--hover-bg, #f8f9fa);
}

.quick-add-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.quick-add-menu a i {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
}

.quick-add-menu a:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.quick-add-menu a:first-child {
    border-radius: 12px 12px 0 0;
}

.quick-add-menu a:hover {
    background-color: var(--bg-primary);
}

/* Week Calendar Overview */
.week-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.calendar-day-column {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.calendar-day-header {
    background: #5271FF;
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.calendar-day-content {
    padding: 1rem;
    min-height: 200px;
}

.job-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    position: relative;
    transition: all 0.2s ease;
}

.job-card:hover {
    border-color: #5271FF;
    transform: translateY(-1px);
}

.job-card .customer-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.job-card .cleaner-name {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.job-card .edit-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: #5271FF;
    cursor: pointer;
    padding: 0.25rem;
}

.job-card .edit-btn:hover {
    color: #3d5fd1;
}

.add-job-btn {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-job-btn:hover {
    border-color: #5271FF;
    color: #5271FF;
}

/* Today's Jobs Table */
.todays-jobs-table {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow-light);
}

.todays-jobs-table .table {
    margin-bottom: 0;
}

.complete-btn {
    background: #28a745;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.complete-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.sick-checkbox {
    margin-left: 0.5rem;
}

/* Top Bar Styling */
.admin-top-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .kpi-boxes {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .week-calendar {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .admin-top-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .quick-add-container {
        position: relative;
    }
    
    .quick-add-btn {
        position: relative;
        bottom: auto;
        right: auto;
    }
    
    .week-calendar {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .overview-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .overview-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .week-calendar {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .calendar-day-content {
        min-height: 150px;
        padding: 0.75rem;
    }
    
    .job-card {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .job-card .customer-name {
        font-size: 0.85rem;
    }
    
    .job-card .cleaner-name {
        font-size: 0.75rem;
    }
    
    .kpi-boxes {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .kpi-box {
        padding: 1rem;
    }
    
    .kpi-box .kpi-value {
        font-size: 2rem;
    }
    
    .kpi-box i {
        width: 36px !important;
        height: 36px !important;
    }
    
    .quick-add-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .cleenie-header {
        font-size: 1.25rem;
        padding: 0.75rem !important;
    }
    
    .todays-jobs-table {
        font-size: 0.875rem;
    }
    
    .alerts-table {
        font-size: 0.875rem;
    }
    
    .complete-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .overview-cards {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .overview-card {
        padding: 1rem;
    }
    
    .overview-card h3 {
        font-size: 1.75rem;
    }
    
    .week-calendar-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .calendar-day-header {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .kpi-boxes {
        grid-template-columns: 1fr;
    }
    
    .quick-action-card {
        min-height: 100px;
    }
    
    .quick-action-card .card-body {
        padding: 1rem 0.75rem;
    }
    
    .quick-action-card i {
        width: 36px !important;
        height: 36px !important;
    }
    
    .company-name {
        font-size: 1.25rem;
    }
    
    .more-reports-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Stack table content vertically on very small screens */
    .todays-jobs-table .table,
    .alerts-table .table {
        font-size: 0.8rem;
    }
    
    .todays-jobs-table .table td,
    .alerts-table .table td {
        padding: 0.5rem 0.25rem;
    }
    
    .table-responsive {
        border: none;
    }
    
    /* Hide less important columns on mobile */
    .table th:nth-child(4),
    .table td:nth-child(4) {
        display: none;
    }
}

/* Landscape mobile adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .week-calendar {
        grid-template-columns: repeat(7, 1fr);
        gap: 0.25rem;
    }
    
    .calendar-day-content {
        min-height: 120px;
        padding: 0.5rem;
    }
    
    .job-card {
        padding: 0.25rem;
        margin-bottom: 0.25rem;
        font-size: 0.75rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .overview-card,
    .kpi-box,
    .quick-action-card {
        border-width: 0.5px;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .overview-card,
    .kpi-box,
    .quick-action-card,
    .job-card,
    .complete-btn,
    .more-reports-btn {
        transition: none;
    }
    
    .overview-card:hover,
    .kpi-box:hover,
    .quick-action-card:hover {
        transform: none;
    }
}

/* Quick Action Cards */
.quick-action-card {
    transition: all 0.3s ease;
    min-height: 120px;
}

.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--shadow-medium);
    border-color: #5271FF;
}

.quick-action-card .card-body {
    padding: 1.5rem 1rem;
}

.quick-action-card h6 {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
}

.quick-action-card i {
    color: #5271FF;
}

/* Reports / Analytics KPI Boxes */
.kpi-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

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

.kpi-box .kpi-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4A90E2;
    margin-bottom: 0.5rem;
}

.kpi-box .kpi-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

.kpi-box i {
    color: #4A90E2;
    margin-bottom: 1rem;
}

.more-reports-btn {
    background: #4A90E2;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.more-reports-btn:hover {
    background: #357ABD;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    color: white;
}

/* Alerts Table */
.alerts-table {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow-light);
}

.alerts-table .table {
    margin-bottom: 0;
}

.all-clean-message {
    text-align: center;
    padding: 3rem 2rem;
}

.all-clean-message i {
    color: #28a745;
    margin-bottom: 1rem;
}

.all-clean-message h4 {
    color: #28a745;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.all-clean-message p {
    color: var(--text-secondary);
    margin: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Removed dark theme adjustments - light theme only */

/* Desktop sidebar hover effects */
@media (min-width: 992px) {
    .bottom-nav-item:hover {
        transform: translateX(5px);
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* Mobile bottom nav hover effects */
@media (max-width: 991px) {
    .bottom-nav-item:hover {
        transform: translateY(-2px);
    }
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    max-width: 90vw;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
}

.notification-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background-color: #fff5f5;
    border-left: 3px solid #dc3545;
}

.notification-content {
    font-size: 14px;
    line-height: 1.4;
}

.notification-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.notification-text {
    color: #666;
    font-size: 13px;
}

.notification-time {
    color: #999;
    font-size: 12px;
    margin-top: 4px;
}

.notification-footer {
    padding: 12px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.notification-empty-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
}

.notification-empty-text {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.notification-empty-subtext {
    font-size: 14px;
    color: #999;
}

/* Removed dark theme adjustments - light theme only */

/* Notification badge styling - Simple red circle */
.position-relative #notificationBadge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

/* Mobile responsive badge adjustments */
@media (max-width: 768px) {
    .position-relative #notificationBadge {
        top: -3px;
        right: -3px;
        width: 7px;
        height: 7px;
        border: 1px solid white;
    }
}

/* Removed dark theme notification styles - light theme only */

/* Month Picker Desktop Improvements */
.desktop-month-picker {
    position: relative;
    z-index: 1000;
}

#monthFilter {
    cursor: pointer !important;
    position: relative;
}

/* Desktop-specific month picker styles */
@media (min-width: 768px) {
    .desktop-month-picker {
        display: flex;
        align-items: stretch;
        height: 31px; /* Match form-control-sm height */
    }
    
    #monthFilter {
        background-color: #f8f9fa !important;
        border: 1px solid #4A90E2 !important;
        border-right: none !important;
        border-radius: 0.375rem 0 0 0.375rem !important;
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
        line-height: 1.25rem;
        min-width: 120px;
        height: 31px;
        display: flex;
        align-items: center;
        flex: 1;
    }
    
    #monthFilter:focus {
        outline: none;
        border-color: #4A90E2 !important;
        box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
        z-index: 1001;
    }
    
    #monthFilter:hover {
        border-color: #357abd !important;
        background-color: #ffffff !important;
    }
    
    /* Enhanced calendar icon styling */
    #monthFilter + .input-group-text {
        transition: all 0.2s ease;
        border-radius: 0 0.375rem 0.375rem 0 !important;
        border: 1px solid #4A90E2 !important;
        border-left: none !important;
        height: 31px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.375rem 0.75rem;
        background-color: #4A90E2 !important;
    }
    
    #monthFilter + .input-group-text:hover {
        background-color: #357abd !important;
        border-color: #357abd !important;
        transform: scale(1.05);
    }
    
    #monthFilter + .input-group-text:active {
        transform: scale(0.95);
    }
    
    /* Ensure month picker dropdown is visible */
    #monthFilter::-webkit-calendar-picker-indicator {
        background: transparent;
        bottom: 0;
        color: transparent;
        cursor: pointer;
        height: auto;
        left: 0;
        position: absolute;
        right: 0;
        top: 0;
        width: auto;
    }
    
    /* Fix for Chrome/Safari month picker positioning */
    #monthFilter::-webkit-datetime-edit {
        padding: 0;
    }
    
    #monthFilter::-webkit-datetime-edit-fields-wrapper {
        padding: 0;
    }
}

/* Mobile month picker (preserve existing functionality) */
@media (max-width: 767px) {
    #monthFilter {
        -webkit-appearance: auto;
        -moz-appearance: auto;
        appearance: auto;
    }
    
    .desktop-month-picker {
        z-index: auto;
    }
}

/* Jobs Table Dropdown Fix - Force overflow visible on ALL containers */
.jobs-table-container {
    overflow: visible !important;
}

.jobs-table-container .card {
    overflow: visible !important;
}

.jobs-table-container .card-body {
    overflow: visible !important;
}

.jobs-table-container .table-responsive {
    overflow: visible !important;
}

.jobs-table-container .table-container {
    overflow: visible !important;
}

.jobs-table-container .table {
    overflow: visible !important;
}

.jobs-table-container .table tbody {
    overflow: visible !important;
}

.jobs-table-container .table tbody tr {
    overflow: visible !important;
}

.jobs-table-container .table tbody tr td {
    overflow: visible !important;
    position: relative;
}

.jobs-table-container .table thead {
    overflow: visible !important;
}

.jobs-table-container .table thead tr {
    overflow: visible !important;
}

.jobs-table-container .table thead tr th {
    overflow: visible !important;
}

/* Force all possible container elements to allow overflow */
.jobs-table-container * {
    overflow: visible !important;
}

/* Actions column positioning */
.jobs-table-container .table tbody tr td:nth-child(9) {
    position: relative !important;
    overflow: visible !important;
}

/* Dropdown container */
.jobs-table-container .dropdown {
    position: relative !important;
}

/* Dropdown menu - ensure visibility and positioning */
.jobs-table-container .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    z-index: 9999 !important;
    min-width: 200px;
    margin-top: 2px;
    transform: none !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    background-color: #ffffff !important;
    border-radius: 0.375rem !important;
    padding: 0.5rem 0 !important;
}

/* Force dropdown visibility when active */
.jobs-table-container .dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.jobs-table-container .dropdown-menu:not(.show) {
    display: none !important;
}

/* Override Bootstrap's right alignment */
.jobs-table-container .dropdown-menu-end {
    left: 0 !important;
    right: auto !important;
}

/* Dropdown items styling */
.jobs-table-container .dropdown-item {
    padding: 0.5rem 1rem !important;
    color: #212529 !important;
    text-decoration: none !important;
    background-color: transparent !important;
    border: 0 !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    text-align: left !important;
}

.jobs-table-container .dropdown-item:hover {
    background-color: #f8f9fa !important;
    color: #16181b !important;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
    .jobs-table-container .table-responsive {
        overflow-x: auto !important;
        overflow-y: visible !important;
    }
    
    .jobs-table-container .table {
        width: 100%;
        min-width: 800px;
    }
    
    .jobs-table-container .dropdown-menu {
        min-width: 180px;
        z-index: 9999 !important;
    }
}

/* Quotes Table Dropdown Fix - Force overflow visible on ALL containers */
.quotes-table-container {
    overflow: visible !important;
}

.quotes-table-container .card {
    overflow: visible !important;
}

.quotes-table-container .card-body {
    overflow: visible !important;
}

.quotes-table-container .table-responsive {
    overflow: visible !important;
}

.quotes-table-container .table-container {
    overflow: visible !important;
}

.quotes-table-container .table {
    overflow: visible !important;
}

.quotes-table-container .table tbody {
    overflow: visible !important;
}

.quotes-table-container .table tbody tr {
    overflow: visible !important;
}

.quotes-table-container .table tbody tr td {
    overflow: visible !important;
    position: relative;
}

.quotes-table-container .table thead {
    overflow: visible !important;
}

.quotes-table-container .table thead tr {
    overflow: visible !important;
}

.quotes-table-container .table thead tr th {
    overflow: visible !important;
}

/* Force all possible container elements to allow overflow */
.quotes-table-container * {
    overflow: visible !important;
}

/* Actions column positioning */
.quotes-table-container .table tbody tr td:nth-child(9) {
    position: relative !important;
    overflow: visible !important;
}

/* Dropdown container */
.quotes-table-container .dropdown {
    position: relative !important;
}

/* Dropdown menu - ensure visibility and positioning */
.quotes-table-container .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    z-index: 9999 !important;
    min-width: 200px;
    margin-top: 2px;
    transform: none !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    background-color: #ffffff !important;
    border-radius: 0.375rem !important;
    padding: 0.5rem 0 !important;
}

/* Force dropdown visibility when active */
.quotes-table-container .dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.quotes-table-container .dropdown-menu:not(.show) {
    display: none !important;
}

/* Override Bootstrap's right alignment */
.quotes-table-container .dropdown-menu-end {
    left: 0 !important;
    right: auto !important;
}

/* Dropdown items styling */
.quotes-table-container .dropdown-item {
    padding: 0.5rem 1rem !important;
    color: #212529 !important;
    text-decoration: none !important;
    background-color: transparent !important;
    border: 0 !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    text-align: left !important;
}

.quotes-table-container .dropdown-item:hover {
    background-color: #f8f9fa !important;
    color: #16181b !important;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
    .quotes-table-container .table-responsive {
        overflow-x: auto !important;
        overflow-y: visible !important;
    }
    
    .quotes-table-container .table {
        width: 100%;
        min-width: 800px;
    }
    
    .quotes-table-container .dropdown-menu {
        min-width: 180px;
        z-index: 9999 !important;
    }
}

/* Global Modal Header Styling - Cleenie Brand Blue */
.modal-header {
    background-color: #4a90e2 !important;
    color: white !important;
}

.modal-header .modal-title {
    color: white !important;
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
}
