
        * {

            margin: 0;

            padding: 0;

            box-sizing: border-box;

        }

        body {

            font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);

            color: var(--dark);

            min-height: 100vh;

        }

        /* Desktop-only: Fixed height layout with no browser scroll */

        @media (min-width: 769px) {

            html, body {

                height: 100%;

                overflow: hidden;

            }

        }

        /* Header Actions Container */

        .header-actions {

            display: flex;

            align-items: center;

            gap: 1rem;

        }

        /* User Menu Support - Hamburger Dropdown */

        .user-menu-container {

            position: relative;

        }

        .user-menu-trigger {

            width: 36px;

            height: 36px;

            background: rgba(255,255,255,0.2);

            border-radius: 6px;

            display: flex;

            align-items: center;

            justify-content: center;

            cursor: pointer;

            color: white;

            transition: all 0.3s ease;

            flex-direction: column;

            gap: 2px;

            border: 1px solid rgba(255,255,255,0.3);

        }

        .user-menu-trigger span {

            display: block;

            width: 16px;

            height: 2px;

            background: white;

            transition: all 0.3s ease;

        }

        .user-menu-trigger:hover {

            background: rgba(255,255,255,0.3);

            border-color: rgba(255,255,255,0.4);

        }

        .user-menu-dropdown {

            position: absolute;

            top: 45px;

            right: 0;

            background: white;

            border-radius: 12px;

            padding: 12px;

            box-shadow: 0 8px 24px rgba(0,0,0,0.15);

            display: none;

            min-width: 220px;

            z-index: 1000;

        }

        .user-menu-dropdown.show {

            display: block;

        }

        .user-menu-item {

            display: flex;

            align-items: center;

            padding: 10px 15px;

            color: #333;

            text-decoration: none;

            border-radius: 8px;

            transition: all 0.2s ease;

            cursor: pointer;

            gap: 10px;

        }

        .user-menu-item:hover {

            background: #f3f4f6;

            color: var(--primary);

        }

        .user-menu-divider {

            height: 1px;

            background: #e5e7eb;

            margin: 8px 0;

        }

        .color-palette-section {

            padding: 10px;

        }

        .color-palette-label {

            font-size: 0.85rem;

            color: #6b7280;

            margin-bottom: 8px;

            font-weight: 500;

        }

        .color-palette-grid {

            display: grid;

            grid-template-columns: repeat(4, 1fr);

            gap: 8px;

        }

        .color-option {

            width: 28px;

            height: 28px;

            border-radius: 50%;

            cursor: pointer;

            border: 2px solid transparent;

            transition: all 0.3s ease;

            position: relative;

        }

        .color-option:hover {

            transform: scale(1.1);

            box-shadow: 0 2px 8px rgba(0,0,0,0.2);

        }

        .color-option.active {

            border-color: #333;

            transform: scale(1.15);

        }

        .color-option.active::after {

            content: '✓';

            position: absolute;

            top: 50%;

            left: 50%;

            transform: translate(-50%, -50%);

            color: white;

            font-weight: bold;

            font-size: 0.8rem;

        }

        .color-blue { background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%); }

        .color-cyan { background: linear-gradient(135deg, #0e7490 0%, #06b6d4 100%); }

        .color-black { background: linear-gradient(135deg, #111827 0%, #1f2937 100%); }

        .color-orange { background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%); }

        .color-purple { background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%); }

        .color-rose { background: linear-gradient(135deg, #dc2626 0%, #7f1d1d 100%); }

        .color-teal { background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%); }

        .color-indigo { background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%); }

        .color-amber { background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%); }

        .color-lime { background: linear-gradient(135deg, #4d7c0f 0%, #65a30d 100%); }

        .color-pink { background: linear-gradient(135deg, #db2777 0%, #ec4899 100%); }

        .color-slate { background: linear-gradient(135deg, #475569 0%, #64748b 100%); }

        /* Header */

        .header {

            position: sticky;

            top: 0;

            z-index: 100;

            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);

            color: white;

            padding: 1rem 2rem;

            display: flex;

            justify-content: space-between;

            align-items: center;

            box-shadow: 0 2px 10px rgba(0,0,0,0.1);

        }

        .logo {

            font-size: 1.5rem;

            font-weight: bold;

            display: flex;

            align-items: center;

            gap: 0.5rem;

        }

        .logout-btn {

            background: rgba(255,255,255,0.2);

            color: white;

            text-decoration: none;

            padding: 0.5rem 1rem;

            border-radius: 5px;

            transition: all 0.3s;

        }

        .logout-btn:hover {

            background: rgba(255,255,255,0.3);

        }

        /* Weather Widget */

        .weather-widget {

            color: white;

            display: flex;

            align-items: center;

            gap: 1rem;

            padding: 0.5rem 1rem;

            background: rgba(255,255,255,0.1);

            border-radius: 8px;

            backdrop-filter: blur(10px);

        }

        .weather-loading {

            font-size: 0.9rem;

            opacity: 0.8;

        }

        .weather-current {

            display: flex;

            align-items: center;

            gap: 0.5rem;

            font-size: 1.1rem;

            font-weight: 600;

        }

        .weather-temp {

            font-size: 1.3rem;

        }

        .weather-forecast {

            display: flex;

            gap: 0.75rem;

            font-size: 0.75rem;

        }

        .weather-day {

            text-align: center;

            padding: 0.3rem 0.5rem;

            background: rgba(255,255,255,0.1);

            border-radius: 4px;

        }

        .weather-day-name {

            font-weight: 600;

            margin-bottom: 0.2rem;

        }

        .weather-day-temp {

            opacity: 0.9;

        }

        /* Restart Timer Widget */

        .restart-timer-widget {

            color: white;

            display: flex;

            flex-direction: column;

            gap: 0.3rem;

            padding: 0.5rem 1rem;

            background: rgba(255,255,255,0.1);

            border-radius: 8px;

            backdrop-filter: blur(10px);

            min-width: 200px;

        }

        .restart-timer-label {

            font-size: 0.75rem;

            opacity: 0.9;

            font-weight: 500;

        }

        .restart-timer-bar {

            width: 100%;

            height: 20px;

            background: rgba(255,255,255,0.2);

            border-radius: 10px;

            overflow: hidden;

            position: relative;

        }

        .restart-timer-fill {

            height: 100%;

            background: linear-gradient(90deg, #10b981, #3b82f6);

            border-radius: 10px;

            transition: width 1s linear;

            position: relative;

        }

        .restart-timer-text {

            position: absolute;

            top: 50%;

            left: 50%;

            transform: translate(-50%, -50%);

            font-size: 0.7rem;

            font-weight: 600;

            color: white;

            text-shadow: 0 1px 2px rgba(0,0,0,0.3);

        }

        /* Layout */

        .dashboard-container {

            display: flex;

            min-height: calc(100vh - 70px);

        }

        /* Desktop-only: Full height container */

        @media (min-width: 769px) {

            .dashboard-container {

                height: calc(100vh - 70px);

            }

        }

        /* Sidebar */

        .sidebar {

            width: 240px;

            height: calc(100vh - 70px);

            background: var(--sidebar-bg);

            backdrop-filter: blur(20px);

            border-right: 1px solid rgba(30, 64, 175, 0.1);

            box-shadow: 4px 0 24px rgba(0, 0, 0, 0.06);

            padding: 0;
            padding-bottom: 80px;

            overflow-y: auto;

            position: relative;

            transition: width 0.3s ease;

        }

        /* Minimize/Expand functionality - Desktop only */

        @media (min-width: 769px) {

            .sidebar-toggle {

                position: absolute;

                top: 10px;

                right: 10px;

                width: 32px;

                height: 32px;

                background: var(--accent-color);

                color: white;

                border: none;

                border-radius: 6px;

                cursor: pointer;

                display: flex;

                align-items: center;

                justify-content: center;

                font-size: 12px;

                transition: all 0.2s ease;

                z-index: 10;

            }

            .sidebar-toggle:hover {

                background: var(--primary);

                transform: scale(1.05);

            }

            .sidebar.minimized {

                width: 60px;

            }

            .sidebar.minimized .user-greeting,

            .sidebar.minimized .nav-title,

            .sidebar.minimized .nav-item span {

                display: none;

            }

            .sidebar.minimized .nav-item {

                justify-content: center;

                padding: 12px;

            }

            .sidebar.minimized .nav-item i {

                margin-right: 0;

                font-size: 16px;

            }

            /* Simple tooltips for minimized sidebar - use title attribute */

            .sidebar.minimized .nav-item {

                position: relative;

            }

        }

        /* Hide minimize button on mobile - keep existing hamburger menu */

        @media (max-width: 768px) {

            .sidebar-toggle {

                display: none !important;

            }

        }

        .nav-section {

            margin-bottom: 0.5rem;

            padding-top: 0.5rem;

        }

        .nav-title {

            color: var(--gray);

            font-size: 0.65rem;

            font-weight: 600;

            text-transform: uppercase;

            letter-spacing: 0.05em;

            padding: 0.25rem 1rem;

            margin-bottom: 0.125rem;

        }

        .nav-item {

            display: flex;

            align-items: center;

            gap: 0.625rem;

            padding: 0.375rem 1rem;

            margin: 0.0625rem 0.5rem;

            color: var(--dark);

            text-decoration: none;

            border-radius: 6px;

            transition: all 0.2s ease;

            font-weight: 400;

            font-size: 0.8rem;

            cursor: pointer;

            border: 1px solid transparent;

            position: relative;

        }

        /* Ensure nav-item text is NEVER truncated */
        .nav-item span {
            white-space: normal;
            overflow: visible;
            text-overflow: clip;
            word-break: normal;
        }

        .notification-badge {

            animation: pulse 2s infinite;

        }

        @keyframes pulse {

            0% {

                box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);

            }

            70% {

                box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);

            }

            100% {

                box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);

            }

        }

        /* Tenant reply glow animation */
        @keyframes tenantReplyGlow {
            0%, 100% {
                box-shadow: 0 0 15px rgba(59, 130, 246, 0.6), 0 0 30px rgba(59, 130, 246, 0.4);
                border-color: #3b82f6 !important;
            }
            50% {
                box-shadow: 0 0 25px rgba(59, 130, 246, 0.8), 0 0 50px rgba(59, 130, 246, 0.6);
                border-color: #60a5fa !important;
            }
        }

        .tenant-reply-glow {
            animation: tenantReplyGlow 2s ease-in-out infinite;
            border: 2px solid #3b82f6 !important;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(147, 197, 253, 0.05)) !important;
        }

        /* Slide-in bounce animation for cancelled subscription banner */
        @keyframes slideInBounce {
            0% {
                transform: translateY(-100px);
                opacity: 0;
            }
            60% {
                transform: translateY(10px);
                opacity: 1;
            }
            80% {
                transform: translateY(-5px);
            }
            100% {
                transform: translateY(0);
            }
        }

        /* Attention shake animation - gentle 2 wiggles */
        @keyframes attentionShake {
            0%, 100% {
                transform: translateX(0);
            }
            2% {
                transform: translateX(-4px);
            }
            4% {
                transform: translateX(4px);
            }
            6% {
                transform: translateX(-3px);
            }
            8% {
                transform: translateX(3px);
            }
            10%, 90% {
                transform: translateX(0);
            }
        }

        /* Apply animations to cancelled subscription banner - shake every 2.2 seconds */
        .trial-expired {
            animation: slideInBounce 1.2s ease-out, attentionShake 2.2s ease-in-out 2s infinite;
        }

        .nav-item:hover {

            background: var(--sidebar-hover);

            border-color: rgba(30, 64, 175, 0.15);

            color: var(--primary);

            transform: translateX(1px);

        }

        .nav-item.active {

            background: rgba(30, 64, 175, 0.1);

            border-color: var(--primary);

            color: var(--primary);

            font-weight: 500;

            box-shadow: 0 2px 8px rgba(30, 64, 175, 0.15);

        }

        .nav-item i {

            width: 14px;

            text-align: center;

            font-size: 0.875rem;

            opacity: 0.8;

        }

        .nav-item:hover i,

        .nav-item.active i {

            opacity: 1;

        }

        /* Main Content */

        .main-content {

            flex: 1;

            padding: 2rem;

            overflow-y: auto;

            width: 100%;

            position: relative;

        }

        /* Cards */

        .card {

            background: white;

            border-radius: 12px;

            box-shadow: 0 2px 8px rgba(0,0,0,0.05);

            padding: 1.5rem;

            margin-bottom: 1.5rem;

            transition: all 0.3s ease;

        }

        .card:hover {

            transform: translateY(-2px);

            box-shadow: 0 4px 16px rgba(0,0,0,0.1);

        }

        .card-header {

            display: flex;

            align-items: center;

            margin-bottom: 1.5rem;

            padding-bottom: 1rem;

            border-bottom: 1px solid var(--light);

        }

        .card-icon {

            width: 48px;

            height: 48px;

            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);

            border-radius: 12px;

            display: flex;

            align-items: center;

            justify-content: center;

            color: white;

            font-size: 1.25rem;

            margin-right: 1rem;

        }

        .card-title {

            font-size: 1.25rem;

            font-weight: 600;

            color: var(--dark);

        }

        .card-description {

            font-size: 0.875rem;

            color: var(--gray);

            margin-top: 0.25rem;

        }

        /* Stats Grid */

        .stats-grid {

            display: grid;

            grid-template-columns: repeat(4, 1fr);

            gap: 1.5rem;

            margin-bottom: 2rem;

        }

        .stat-card {

            background: white;

            padding: 1.5rem;

            border-radius: 12px;

            box-shadow: 0 2px 8px rgba(0,0,0,0.05);

            border-left: 4px solid var(--primary);

            transition: all 0.3s ease;

        }

        .stat-card:hover {

            transform: translateY(-2px);

            box-shadow: 0 4px 16px rgba(0,0,0,0.1);

        }

        .stat-value {

            font-size: 2rem;

            font-weight: bold;

            color: var(--dark);

            margin-bottom: 0.5rem;

        }

        .stat-label {

            color: var(--gray);

            font-size: 0.875rem;

        }

        .stat-change {

            font-size: 0.75rem;

            color: var(--success);

            margin-top: 0.5rem;

        }

        /* Client Dashboard Styles */

        .reports-grid {

            display: grid;

            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));

            gap: 1rem;

            margin-top: 1rem;

        }

        .report-card {

            background: white;

            border-radius: 8px;

            padding: 1rem;

            box-shadow: 0 2px 4px rgba(0,0,0,0.1);

            transition: all 0.3s ease;

        }

        .report-card:hover {

            transform: translateY(-2px);

            box-shadow: 0 4px 12px rgba(0,0,0,0.15);

        }

        .report-header {

            display: flex;

            justify-content: space-between;

            align-items: center;

            margin-bottom: 0.75rem;

            padding-bottom: 0.75rem;

            border-bottom: 1px solid #e5e7eb;

        }

        .report-date {

            font-size: 0.875rem;

            color: var(--gray);

            font-weight: 500;

        }

        .report-status {

            padding: 0.25rem 0.75rem;

            border-radius: 12px;

            font-size: 0.75rem;

            font-weight: 600;

            text-transform: uppercase;

        }

        .report-status.completed {

            background: #dcfce7;

            color: #16a34a;

        }

        .report-status.pending {

            background: #fef3c7;

            color: #d97706;

        }

        .report-body h4 {

            margin: 0 0 0.5rem 0;

            color: var(--dark);

            font-size: 1rem;

        }

        .report-body p {

            margin: 0.25rem 0;

            font-size: 0.875rem;

            color: var(--gray);

            display: flex;

            align-items: center;

            gap: 0.5rem;

        }

        .report-actions {

            display: flex;

            gap: 0.5rem;

            margin-top: 1rem;

            padding-top: 1rem;

            border-top: 1px solid #e5e7eb;

        }

        .btn-sm {

            padding: 0.5rem 1rem;

            font-size: 0.75rem;

        }

        .empty-state {

            text-align: center;

            padding: 3rem 1rem;

            color: var(--gray);

        }

        .empty-state h3 {

            margin: 0.5rem 0;

            color: var(--dark);

        }

        .empty-state p {

            margin: 0;

            font-size: 0.875rem;

        }

        .loading-spinner {

            text-align: center;

            padding: 2rem;

            color: var(--gray);

        }

        .loading-spinner i {

            font-size: 1.5rem;

            margin-right: 0.5rem;

        }

        .alert {

            padding: 1rem;

            border-radius: 6px;

            margin: 1rem 0;

        }

        .alert-warning {

            background: #fef3c7;

            color: #92400e;

            border: 1px solid #f59e0b;

        }

        .alert-danger {

            background: #fecaca;

            color: #b91c1c;

            border: 1px solid #ef4444;

        }

        /* Buttons */

        .btn {

            display: inline-flex;

            align-items: center;

            gap: 0.5rem;

            padding: 0.75rem 1.5rem;

            border: none;

            border-radius: 8px;

            font-weight: 500;

            cursor: pointer;

            transition: all 0.3s;

            text-decoration: none;

            font-size: 0.875rem;

        }

        .btn-primary {

            background: var(--primary);

            color: white;

        }

        .btn-primary:hover {

            background: var(--primary-dark);

            transform: translateY(-2px);

            box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);

        }

        .btn-secondary {

            background: var(--light);

            color: var(--dark);

            border: 1px solid #e5e7eb;

        }

        .btn-secondary:hover {

            background: #e5e7eb;

        }

        .btn-success {

            background: var(--success);

            color: white;

        }

        .btn-success:hover {

            background: #047857;

        }

        /* Quick Actions */

        .quick-actions {

            display: flex;

            gap: 1rem;

            flex-wrap: wrap;

            margin-top: 1rem;

        }

        /* Status List */

        .status-list {

            list-style: none;

            margin-top: 1rem;

        }

        .status-list li {

            padding: 0.5rem 0;

            color: var(--gray);

            display: flex;

            align-items: center;

            gap: 0.5rem;

        }

        .status-list i {

            color: var(--success);

        }

        /* User Greeting */

        .user-greeting {

            padding: 1rem 1rem;

            background: linear-gradient(135deg, var(--primary), var(--primary-dark));

            color: white;

            border-bottom: 1px solid rgba(255, 255, 255, 0.1);

        }

        .user-greeting h3 {

            font-size: 1rem;

            font-weight: 600;

            margin-bottom: 0.125rem;

            color: white;

        }

        .user-greeting p {

            font-size: 0.75rem;

            opacity: 0.9;

            font-weight: 400;

            color: rgba(255, 255, 255, 0.8);

        }

        /* Super Admin Section */

        .super-admin-section {

            background: rgba(249, 250, 251, 0.8);

            border-top: 2px solid rgba(30, 64, 175, 0.1);

            margin: 0.5rem 0.5rem 0;

            border-radius: 8px;

            padding: 0.5rem 0;

            backdrop-filter: blur(10px);

        }

        .super-admin-section .nav-title {

            color: var(--primary);

            font-weight: 700;

            display: flex;

            align-items: center;

            gap: 0.375rem;

        }

        .super-admin-section .nav-item {

            margin: 0.0625rem 0.5rem;

        }

        .super-admin-section .nav-item:hover {

            background: rgba(30, 64, 175, 0.1);

            border-color: var(--primary);

        }

        /* Scrollbar styling */

        .sidebar::-webkit-scrollbar {

            width: 4px;

        }

        .sidebar::-webkit-scrollbar-track {

            background: rgba(0, 0, 0, 0.02);

        }

        .sidebar::-webkit-scrollbar-thumb {

            background: rgba(30, 64, 175, 0.2);

            border-radius: 2px;

        }

        .sidebar::-webkit-scrollbar-thumb:hover {

            background: rgba(30, 64, 175, 0.4);

        }

        /* Iframe Container */

        .iframe-container {

            width: 100%;

            height: calc(100vh - 200px);

            border-radius: 12px;

            overflow: hidden;

            box-shadow: 0 2px 8px rgba(0,0,0,0.1);

            background: white;

        }

        .iframe-container iframe {

            width: 100%;

            height: 100%;

            border: none;

        }

        /* Full screen iframe container - no padding, margins, or cards */

        .iframe-container-fullscreen {

            position: absolute;

            top: 0;

            left: 0;

            right: 0;

            bottom: 0;

            width: 100%;

            height: 100%;

            margin: 0;

            padding: 0;

            overflow: auto;

            background: white;

        }

        /* Hide main dashboard header ONLY when AI inspection software is active (has specific class) */
        body.hide-header-for-ai-builder .header {
            display: none !important;
        }

        .iframe-container-fullscreen iframe {

            width: 100%;

            height: 100%;

            border: none;

            margin: 0;

            padding: 0;

            display: block;

        }

        /* Dropdown menu styles for hamburger actions */

        .dropdown-menu.show {

            display: block;

            position: absolute;

            top: 100%;

            left: auto;

            right: 0;

            z-index: 1000;

            background: white;

            border: 1px solid #dee2e6;

            border-radius: 0.375rem;

            box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);

            min-width: 10rem;

        }

        .hamburger-btn {

            border: 1px solid #dee2e6 !important;

            background: white !important;

            color: #6c757d !important;

        }

        .hamburger-btn:hover {

            background: #f8f9fa !important;

            border-color: #6c757d !important;

        }

        /* Welcome Banner */

        .welcome-banner {

            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);

            color: white;

            padding: 2rem;

            border-radius: 12px;

            margin-bottom: 2rem;

            position: relative;

            overflow: hidden;

        }

        .welcome-banner::before {

            content: '';

            position: absolute;

            top: 0;

            right: 0;

            width: 100px;

            height: 100px;

            background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);

            border-radius: 50%;

            transform: translate(30px, -30px);

        }

        .welcome-banner h1 {

            font-size: 2rem;

            margin-bottom: 0.5rem;

        }

        .welcome-banner p {

            opacity: 0.9;

        }

        /* Super Admin Controls */

        .super-admin-section {

            background: linear-gradient(135deg, #dc2626, #991b1b) !important;

            margin-top: 2rem;

        }

        .super-admin-section .nav-title {

            color: rgba(255,255,255,0.9) !important;

            font-weight: 600;

        }

        .super-admin-section .nav-item {

            color: rgba(255,255,255,0.8);

        }

        .super-admin-section .nav-item:hover {

            background: rgba(255,255,255,0.1);

            color: white;

            border-left-color: #fef2f2;

        }

        /* Toggle Switch Styles */

        .toggle-switch {

            position: relative;

            display: inline-block;

            width: 48px;

            height: 24px;

        }

        .toggle-switch input {

            opacity: 0;

            width: 0;

            height: 0;

        }

        .toggle-slider {

            position: absolute;

            cursor: pointer;

            top: 0;

            left: 0;

            right: 0;

            bottom: 0;

            background-color: #ccc;

            transition: .3s;

            border-radius: 24px;

        }

        .toggle-slider:before {

            position: absolute;

            content: "";

            height: 18px;

            width: 18px;

            left: 3px;

            bottom: 3px;

            background-color: white;

            transition: .3s;

            border-radius: 50%;

        }

        input:checked + .toggle-slider {

            background-color: #10b981;

        }

        input:checked + .toggle-slider:before {

            transform: translateX(24px);

        }

        /* Navigation Manager Toggle Switches */

        .switch {

            position: relative;

            display: inline-block;

            width: 50px;

            height: 24px;

        }

        .switch.switch-small {

            width: 40px;

            height: 20px;

        }

        .switch input {

            opacity: 0;

            width: 0;

            height: 0;

        }

        .slider {

            position: absolute;

            cursor: pointer;

            top: 0;

            left: 0;

            right: 0;

            bottom: 0;

            background-color: #ccc;

            transition: .3s;

            border-radius: 24px;

        }

        .slider.slider-small {

            border-radius: 20px;

        }

        .slider:before {

            position: absolute;

            content: "";

            height: 18px;

            width: 18px;

            left: 3px;

            bottom: 3px;

            background-color: white;

            transition: .3s;

            border-radius: 50%;

        }

        .slider-small:before {

            height: 14px;

            width: 14px;

            left: 3px;

            bottom: 3px;

        }

        input:checked + .slider {

            background-color: #10b981;

        }

        input:checked + .slider:before {

            transform: translateX(26px);

        }

        input:checked + .slider-small:before {

            transform: translateX(20px);

        }

        .slider:focus {

            box-shadow: 0 0 1px #10b981;

        }

        /* Custom Page Content Styling */

        .custom-page-content {

            color: var(--dark);

        }

        .custom-page-content h1,

        .custom-page-content h2,

        .custom-page-content h3,

        .custom-page-content h4,

        .custom-page-content h5,

        .custom-page-content h6 {

            color: var(--primary);

            margin-bottom: 1rem;

        }

        .custom-page-content .alert {

            border-radius: 8px;

            border: none;

            padding: 1rem;

        }

        .custom-page-content .alert-info {

            background-color: rgba(59, 130, 246, 0.1);

            border-left: 4px solid var(--primary);

            color: var(--primary-dark);

        }

        .custom-page-content .alert-success {

            background-color: rgba(16, 185, 129, 0.1);

            border-left: 4px solid var(--success);

            color: var(--success);

        }

        .custom-page-content .alert-warning {

            background-color: rgba(245, 158, 11, 0.1);

            border-left: 4px solid var(--warning);

            color: var(--warning);

        }

        .custom-page-content a {

            color: var(--primary);

            text-decoration: none;

        }

        .custom-page-content a:hover {

            color: var(--primary-dark);

            text-decoration: underline;

        }

        /* Mobile Menu Button */

        .mobile-menu-button {

            display: none;

            position: fixed;

            top: 20px;

            left: 20px;

            z-index: 1001;

            width: 40px;

            height: 40px;

            background: var(--white);

            border: none;

            border-radius: 8px;

            cursor: pointer;

            box-shadow: 0 2px 8px rgba(0,0,0,0.15);

            flex-direction: column;

            align-items: center;

            justify-content: center;

            gap: 4px;

        }

        .mobile-menu-button span {

            width: 20px;

            height: 2px;

            background: var(--dark);

            border-radius: 1px;

            transition: all 0.3s ease;

        }

        .mobile-menu-button.active span:nth-child(1) {

            transform: rotate(45deg) translate(5px, 5px);

        }

        .mobile-menu-button.active span:nth-child(2) {

            opacity: 0;

        }

        .mobile-menu-button.active span:nth-child(3) {

            transform: rotate(-45deg) translate(7px, -6px);

        }

        /* Mobile Overlay */

        .mobile-overlay {

            display: none;

            position: fixed;

            top: 0;

            left: 0;

            width: 100%;

            height: 100%;

            background: rgba(0,0,0,0.5);

            z-index: 999;

        }

        .mobile-overlay.show {

            display: block;

        }

        /* User Greeting */

        .user-greeting {

            padding: 1rem;

            border-bottom: 1px solid rgba(255,255,255,0.1);

            text-align: center;

        }

        .user-greeting h3 {

            color: white;

            font-size: 1.1rem;

            margin: 0 0 0.25rem 0;

            font-weight: 600;

        }

        .user-greeting p {

            color: rgba(255,255,255,0.7);

            font-size: 0.875rem;

            margin: 0;

        }

        /* Responsive */

        @media (max-width: 768px) {

            /* Keep user menu visible on mobile but adjust size */

            .user-menu-trigger {

                width: 32px;

                height: 32px;

                gap: 1px;

            }

            .user-menu-trigger span {

                width: 14px;

            }

            .mobile-menu-button {

                display: flex;

            }

            .sidebar {

                transform: translateX(-100%);

                position: fixed;

                top: 0;

                left: 0;

                height: 100vh;

                z-index: 1000;

                transition: transform 0.3s ease;

                width: 240px;

                overflow-y: auto;

                overflow-x: hidden;

                -webkit-overflow-scrolling: touch;

                scrollbar-width: thin;

                scrollbar-color: rgba(255,255,255,0.2) transparent;

            }

            .sidebar::-webkit-scrollbar {

                width: 4px;

            }

            .sidebar::-webkit-scrollbar-track {

                background: transparent;

            }

            .sidebar::-webkit-scrollbar-thumb {

                background: rgba(255,255,255,0.3);

                border-radius: 2px;

            }

            .sidebar.mobile-open {

                transform: translateX(0);

            }

            .main-content {

                padding: 1rem;

                margin-top: 80px;

            }

            /* Header adjustments for mobile */

            .header {

                padding: 1rem;

                height: 70px;

                display: flex;

                align-items: center;

                justify-content: space-between;

            }

            .header .logo {

                font-size: 1.1rem;

                margin-left: 60px;

            }

            /* Weather widget mobile - hide on small screens */

            .weather-widget {

                display: none;

            }

            /* Welcome banner mobile optimization */

            .welcome-banner {

                padding: 1.5rem;

                margin-bottom: 1.5rem;

            }

            .welcome-banner h1 {

                font-size: 1.5rem;

                margin-bottom: 0.75rem;

            }

            /* Stats grid mobile - 2 columns */

            .stats-grid {

                grid-template-columns: repeat(4, 1fr);

                gap: 1rem;

                margin-bottom: 1.5rem;

            }

            .stat-card {

                padding: 1rem;

            }

            .stat-value {

                font-size: 1.8rem;

            }

            .stat-label {

                font-size: 0.75rem;

            }

            /* Card adjustments */

            .card {

                margin-bottom: 1rem;

                padding: 1rem;

            }

            .card-header h2 {

                font-size: 1.25rem;

            }

            /* Quick actions mobile */

            .quick-actions {

                display: grid;

                grid-template-columns: repeat(4, 1fr);

                gap: 0.75rem;

            }

            .btn {

                padding: 0.75rem;

                font-size: 0.875rem;

                justify-content: center;

            }

            /* Business profile preview mobile */

            .welcome-banner div[style*="background: white"] {

                padding: 1rem !important;

                margin: 0.75rem 0 !important;

            }

            .welcome-banner div[style*="display: flex"] {

                flex-direction: column !important;

                text-align: center !important;

                gap: 1rem !important;

            }

            .welcome-banner div[style*="width: 80px"] {

                width: 60px !important;

                height: 60px !important;

                font-size: 1.5rem !important;

                margin: 0 auto !important;

            }

            .welcome-banner h3 {

                font-size: 1.25rem !important;

            }

            .welcome-banner div[style*="display: grid"] {

                grid-template-columns: 1fr !important;

                gap: 0.75rem !important;

            }

            .user-menu-dropdown {

                right: -10px;

                min-width: 200px;

            }

            /* Navigation mobile - compact list style */

            .nav-section {

                margin-bottom: 0.5rem;

            }

            .nav-title {

                font-size: 0.7rem;

                padding: 0.5rem 1rem;

                margin-bottom: 0.25rem;

                font-weight: 600;

                text-transform: uppercase;

                letter-spacing: 0.5px;

            }

            .nav-item {

                padding: 0.6rem 1rem;

                font-size: 0.8rem;

                line-height: 1.2;

                border-radius: 6px;

                margin: 0 0.5rem 0.25rem 0.5rem;

                transition: all 0.2s ease;

            }

            .nav-item i {

                font-size: 0.9rem;

                width: 16px;

                text-align: center;

                margin-right: 0.5rem;

            }

            .nav-item:hover {

                background: rgba(255,255,255,0.1);

                transform: translateX(3px);

            }

            .nav-item.active {

                background: rgba(255,255,255,0.15);

                color: #60a5fa;

            }

            /* User greeting mobile - more compact */

            .user-greeting {

                padding: 0.75rem 1rem;

                border-bottom: 1px solid rgba(255,255,255,0.1);

            }

            .user-greeting h3 {

                font-size: 0.9rem;

                margin-bottom: 0.15rem;

                font-weight: 600;

            }

            .user-greeting p {

                font-size: 0.75rem;

                opacity: 0.8;

                margin: 0;

            }

            /* Iframe container mobile */

            .iframe-container {

                height: calc(100vh - 300px) !important;

                margin-top: 1rem;

            }

        }

        /* Extra small mobile devices */

        @media (max-width: 480px) {

            .stats-grid {

                grid-template-columns: repeat(4, 1fr);
                gap: 0.5rem;

            }

            .stat-card {
                padding: 0.5rem;
            }

            .stat-value {
                font-size: 1.25rem;
                margin-bottom: 0.25rem;
            }

            .stat-label {
                font-size: 0.65rem;
                line-height: 1.2;
            }

            .stat-change {
                font-size: 0.6rem;
                margin-top: 0.25rem;
            }

            .quick-actions {

                grid-template-columns: 1fr;

            }

            .main-content {

                padding: 0.75rem;

            }

            .welcome-banner {

                padding: 1rem;

            }

            .welcome-banner h1 {

                font-size: 1.25rem;

            }

            .sidebar {

                width: 100vw;

            }

        }

        /* Improved mobile styles for clients and agents */

        @media (max-width: 768px) {

            .client-categories {

                display: flex !important;

                flex-direction: column !important;

                gap: 1rem !important;

                padding: 0 !important;

            }

            .category-card {

                margin: 0 !important;

                padding: 1.25rem !important;

                border-radius: 16px !important;

                box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;

            }

            .category-card .stats-row {

                gap: 0.5rem !important;

                margin-top: 1.25rem !important;

            }

            .category-card .stats-row > div {

                flex: 1;

                text-align: center;

                padding: 0.75rem 0.25rem;

                background: #f9fafb;

                border-radius: 12px;

            }

            .category-card .stats-row > div > div:first-child {

                font-size: 1.25rem !important;

            }

            .category-card .stats-row > div > div:last-child {

                font-size: 0.625rem !important;

                line-height: 1.2;

            }

            .category-card button {

                padding: 0.875rem !important;

                font-size: 0.9375rem !important;

                border-radius: 12px !important;

                margin-top: 1.25rem !important;

            }

            .activity-list > div {

                padding: 1rem 0 !important;

            }

            /* Card header improvements */

            .card-header > div:not(.card-icon) {

                flex: 1;

            }

            .card-header .card-icon {

                width: 40px !important;

                height: 40px !important;

                margin-right: 0.75rem !important;

            }

            .card-header .card-icon i {

                font-size: 1.25rem !important;

            }

            .card-description {

                font-size: 0.875rem !important;

                line-height: 1.3 !important;

            }

            /* Remove hover effects on mobile for better touch experience */

            .category-card:hover {

                transform: none !important;

                box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;

            }

            /* Activity list mobile improvements */

            .activity-list {

                font-size: 0.875rem;

            }

            .activity-list strong {

                display: block;

                margin-bottom: 0.25rem;

            }

            /* Touch-friendly tap targets */

            .category-card {

                position: relative;

                -webkit-tap-highlight-color: rgba(0,0,0,0.1);

            }

            .category-card:active {

                transform: scale(0.98) !important;

            }

            /* Activity section mobile */

            .activity-section {

                margin-top: 1rem !important;

            }

            .activity-section h3 {

                font-size: 1.125rem !important;

            }

        }

        /* Animations */

        @keyframes fadeIn {

            from { opacity: 0; transform: translateY(20px); }

            to { opacity: 1; transform: translateY(0); }

        }

        .fade-in {

            animation: fadeIn 0.5s ease;

        }

        /* Navigation Editor Styles */

        .navigation-editor {

            background: #f9fafb;

            border-radius: 8px;

            padding: 1rem;

        }

        .nav-editor-sections {

            display: flex;

            flex-direction: column;

            gap: 1rem;

        }

        .nav-editor-section {

            background: white;

            border: 1px solid #e5e7eb;

            border-radius: 8px;

            overflow: hidden;

        }

        .nav-section-header {

            background: #f3f4f6;

            padding: 1rem;

            display: flex;

            justify-content: space-between;

            align-items: center;

            border-bottom: 1px solid #e5e7eb;

        }

        .nav-section-header h5 {

            margin: 0;

            font-size: 1rem;

            color: #1f2937;

            display: flex;

            align-items: center;

            gap: 0.5rem;

        }

        .nav-section-actions {

            display: flex;

            gap: 0.5rem;

        }

        .nav-items {

            padding: 0.5rem;

        }

        .nav-editor-item {

            background: #f9fafb;

            border: 1px solid #e5e7eb;

            border-radius: 6px;

            padding: 0.75rem 1rem;

            margin-bottom: 0.5rem;

            display: flex;

            justify-content: space-between;

            align-items: center;

            transition: all 0.2s;

        }

        .nav-editor-item:hover {

            background: #f3f4f6;

            border-color: #d1d5db;

        }

        .nav-item-content {

            display: flex;

            align-items: center;

            gap: 1rem;

            flex: 1;

        }

        .nav-item-label {

            font-weight: 500;

            color: #374151;

        }

        .nav-item-function {

            font-size: 0.875rem;

            color: #6b7280;

            background: #e5e7eb;

            padding: 0.125rem 0.5rem;

            border-radius: 4px;

        }

        .nav-item-actions {

            display: flex;

            gap: 0.25rem;

            opacity: 0;

            transition: opacity 0.2s;

        }

        .nav-editor-item:hover .nav-item-actions {

            opacity: 1;

        }

        .status-dot {

            width: 8px;

            height: 8px;

            border-radius: 50%;

            display: inline-block;

        }

        .status-dot.active {

            background: #10b981;

            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);

        }

        /* ===========================================
           MOBILE RESPONSIVE - Hide elements on mobile
           =========================================== */
        @media (max-width: 768px) {
            .business-profile-card,
            .welcome-banner {
                display: none !important;
            }
            .logout-btn,
            .premium-action-btn {
                display: none !important;
            }
            #main-content-area {
                margin-top: 10px !important;
                padding-top: 10px !important;
            }
            .report-preview-card,
            .report-preview-card *,
            .report-card,
            .report-card * {
                text-align: center !important;
            }
            .card-subtitle {
                display: none !important;
            }

            /* Hide greeting and date in sidebar - keep only business name */
            #userGreeting {
                display: none !important;
            }
            .timezone-display {
                display: none !important;
            }

            /* Make business name more prominent on mobile */
            #companyGreeting {
                font-size: 1rem !important;
                font-weight: 600 !important;
                margin: 0 !important;
                padding: 0.5rem 0 !important;
            }
        }
