        :root {
            --bg-primary: #0f172a;
            --bg-secondary: #1e293b;
            --bg-tertiary: #334155;
            --bg-glass: rgba(59,130,246,0.05);
            --text-primary: #f8fafc;
            --text-secondary: #94a3b8;
            --text-muted: #64748b;
            --accent-primary: #3b82f6;
            --accent-secondary: #6366f1;
            --accent-tertiary: #22c55e;
            --accent-gold: #f59e0b;
            --danger: #ef4444;
            --warning: #f97316;
            --success: #22c55e;
            --glass-border: rgba(148,163,184,0.15);
            --glow-accent: 0 4px 20px rgba(59,130,246,0.15);
            --glow-secondary: 0 4px 20px rgba(99,102,241,0.15);
            --shadow-lg: 0 8px 32px rgba(0,0,0,0.3);
            --font-display: 'Outfit', sans-serif;
            --font-body: 'Inter', sans-serif;
            --font-mono: 'Fira Code', monospace;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-body), -apple-system, BlinkMacSystemFont, sans-serif;
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            color: var(--text-primary);
            overflow-x: hidden;
            position: relative;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(ellipse at 20% 20%, rgba(59,130,246,0.05) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(99,102,241,0.05) 0%, transparent 50%);
            pointer-events: none;
            z-index: 0;
        }

        /* Clean background - no grid */
        body::after {
            content: '';
            display: none;
        }

        @keyframes gradientShift {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.8; transform: scale(1.1); }
        }

        ::-webkit-scrollbar { width: 8px; height: 8px; }
        ::-webkit-scrollbar-track { background: var(--bg-secondary); }
        ::-webkit-scrollbar-thumb { 
            background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
            border-radius: 4px;
        }

        .app-container {
            display: flex;
            min-height: 100vh;
            position: relative;
            z-index: 1;
        }

        .sidebar {
            width: 260px;
            background: rgba(15, 23, 42, 0.95);
            backdrop-filter: blur(20px);
            border-right: 1px solid rgba(148,163,184,0.1);
            padding: 24px 0;
            position: fixed;
            height: 100vh;
            overflow-y: auto;
            z-index: 100;
            box-shadow: 4px 0 24px rgba(0,0,0,0.15);
        }

        .logo {
            padding: 0 24px 24px;
            border-bottom: 1px solid rgba(148,163,184,0.1);
            margin-bottom: 24px;
        }

        .virely-logo-container {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 8px;
        }

        .virely-logo-box {
            width: 48px;
            height: 48px;
            background: linear-gradient(145deg, #3b82f6, #6366f1);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(59,130,246,0.3);
            border: 1px solid rgba(255,255,255,0.1);
            position: relative;
        }

        .virely-logo-box::before {
            content: '';
            position: absolute;
            top: 3px;
            left: 3px;
            right: 3px;
            height: 40%;
            background: linear-gradient(180deg, rgba(255,255,255,0.3), transparent);
            border-radius: 6px 6px 0 0;
        }

        .virely-v {
            font-size: 32px;
            font-weight: 900;
            color: #ffffff;
            text-shadow: 
                0 2px 4px rgba(0,0,0,0.3),
                0 -1px 1px rgba(255,255,255,0.2);
            font-family: 'Inter', sans-serif;
            letter-spacing: -1px;
            position: relative;
            z-index: 1;
        }

        .virely-text {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .virely-brand {
            font-family: var(--font-display);
            font-size: 22px;
            font-weight: 800;
            color: var(--accent-primary);
            letter-spacing: 2px;
            line-height: 1;
        }

        .virely-tagline {
            font-family: var(--font-mono);
            font-size: 8px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 2px;
            font-weight: 600;
        }

        .logo-subtitle {
            font-family: var(--font-mono);
            font-size: 10px;
            color: var(--text-muted);
            margin-top: 12px;
            text-transform: uppercase;
            letter-spacing: 3px;
            font-weight: 600;
        }

        .nav-menu {
            padding: 0 12px;
        }

        .nav-item {
            font-family: var(--font-body);
            padding: 12px 16px;
            margin-bottom: 4px;
            cursor: pointer;
            border-radius: 8px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 13px;
            font-weight: 500;
            position: relative;
            overflow: hidden;
            letter-spacing: -0.01em;
            border: 1px solid transparent;
        }

        .nav-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
            transform: scaleY(0);
            transition: transform 0.3s ease;
        }

        .nav-item:hover {
            background: rgba(59,130,246,0.08);
            border-color: rgba(59,130,246,0.2);
            transform: translateX(4px);
        }

        .nav-item.active {
            background: rgba(59,130,246,0.12);
            color: var(--accent-primary);
            border-color: rgba(59,130,246,0.25);
            box-shadow: 0 2px 12px rgba(59,130,246,0.1);
        }

        .nav-item.active::before {
            transform: scaleY(1);
        }

        .nav-icon {
            font-size: 20px;
            width: 24px;
            text-align: center;
            pointer-events: none;
        }
        
        .nav-item > span {
            pointer-events: none;
        }

        .main-content {
            flex: 1;
            margin-left: 260px;
            margin-right: 420px;
            padding: 32px;
            position: relative;
            transition: margin-right 0.3s ease;
            min-width: 0;
            max-width: calc(100vw - 260px - 420px);
            overflow-x: hidden;
        }

        .ai-insights-sidebar {
            width: 420px;
            background: rgba(15, 23, 42, 0.95);
            backdrop-filter: blur(20px);
            border-left: 1px solid var(--glass-border);
            padding: 24px;
            position: fixed;
            right: 0;
            height: 100vh;
            overflow-y: auto;
            z-index: 99;
            box-shadow: -4px 0 24px rgba(0,0,0,0.15);
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .ai-insights-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 24px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--glass-border);
        }

        .ai-insights-title {
            font-size: 20px;
            font-weight: 700;
            background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .summary-tile {
            background: rgba(30, 41, 59, 0.5);
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: all 0.3s ease;
        }

        .summary-tile:hover {
            transform: translateX(4px);
            box-shadow: 0 4px 16px rgba(59,130,246,0.1);
            border-color: var(--accent-primary);
            background: rgba(30, 41, 59, 0.7);
        }

        .summary-icon {
            font-size: 28px;
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-glass);
            border-radius: 10px;
            flex-shrink: 0;
        }

        .summary-content {
            flex: 1;
            min-width: 0;
        }

        .summary-label {
            font-size: 11px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .summary-value {
            font-size: 20px;
            font-weight: 800;
            color: var(--accent-primary);
            margin-bottom: 2px;
        }

        .summary-detail {
            font-size: 11px;
            color: var(--text-secondary);
        }

        .ai-insight-card {
            background: rgba(30, 41, 59, 0.4);
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 16px;
            transition: all 0.3s ease;
        }

        .ai-insight-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(59,130,246,0.1);
            border-color: var(--accent-primary);
        }

        .ai-insight-icon {
            font-size: 32px;
            margin-bottom: 12px;
        }

        .ai-insight-label {
            font-size: 13px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .ai-insight-value {
            font-size: 28px;
            font-weight: 800;
            color: var(--accent-primary);
            margin-bottom: 8px;
        }

        .ai-insight-description {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 12px;
        }

        .ai-insight-trend {
            font-size: 12px;
            font-weight: 600;
            padding: 6px 12px;
            border-radius: 8px;
            display: inline-block;
        }

        .trend-positive {
            background: rgba(34,197,94,0.15);
            color: var(--success);
        }

        .trend-negative {
            background: rgba(255,107,107,0.15);
            color: var(--danger);
        }

        .ai-recommendation {
            margin-top: 12px;
            padding: 12px;
            background: var(--bg-glass);
            border-left: 3px solid var(--accent-primary);
            border-radius: 8px;
            font-size: 12px;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 32px;
            padding-bottom: 24px;
            border-bottom: 1px solid var(--glass-border);
            gap: 16px;
            flex-wrap: wrap;
        }

        .header-left {
            display: flex;
            flex-direction: column;
            gap: 8px;
            flex: 1;
            min-width: 0;
            overflow: hidden;
        }

        .greeting-message {
            font-size: 18px;
            font-weight: 600;
            color: var(--accent-primary);
            letter-spacing: -0.3px;
            margin-bottom: 4px;
        }

        .system-time {
            font-size: 14px;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .header h2 {
            font-size: 32px;
            font-weight: 800;
            margin-bottom: 8px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .header-subtitle {
            font-size: 14px;
            color: var(--text-muted);
        }

        .header-actions {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            align-items: center;
        }

        .btn {
            min-width: 48px;
            min-height: 48px;
            padding: 12px 16px;
            border-radius: 12px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            border: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.4), inset 0 -3px 8px rgba(0,0,0,0.3), inset 0 2px 6px rgba(255,255,255,0.15);
            white-space: nowrap;
        }
        
        /* Icon-only buttons (exactly 48px x 48px) */
        .btn.icon-only {
            width: 48px;
            height: 48px;
            padding: 0;
            min-width: 48px;
            min-height: 48px;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 50%;
            background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
            border-radius: 12px 12px 0 0;
            pointer-events: none;
        }

        .btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255,255,255,0.3);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .btn:active::after {
            width: 200px;
            height: 200px;
            transition: width 0s, height 0s;
        }

        .btn:active {
            transform: translateY(2px);
            box-shadow: 0 2px 8px rgba(0,0,0,0.4), inset 0 -2px 6px rgba(0,0,0,0.3), inset 0 1px 4px rgba(255,255,255,0.1);
        }

        .btn-primary {
            font-family: var(--font-body);
            min-width: 48px;
            min-height: 48px;
            padding: 12px 24px;
            border-radius: 14px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            border: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            position: relative;
            overflow: hidden;
            white-space: nowrap;
            letter-spacing: 0.02em;
            background: linear-gradient(145deg, var(--accent-primary) 0%, #4f46e5 100%);
            color: #ffffff;
            box-shadow: 
                0 4px 16px rgba(59,130,246,0.35),
                0 0 0 1px rgba(255,255,255,0.1) inset;
        }

        .btn-primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
            transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            background: linear-gradient(145deg, #2563eb 0%, #4338ca 100%);
            box-shadow: 
                0 8px 28px rgba(59,130,246,0.45),
                0 0 0 1px rgba(255,255,255,0.15) inset;
        }

        .btn-primary:hover::before {
            left: 100%;
        }

        .btn-primary:active {
            transform: translateY(-1px);
            box-shadow: 
                0 4px 12px rgba(59,130,246,0.35),
                0 0 0 1px rgba(255,255,255,0.1) inset;
        }

        .btn-secondary {
            font-family: var(--font-body);
            min-width: 48px;
            min-height: 48px;
            padding: 12px 24px;
            border-radius: 14px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            position: relative;
            overflow: hidden;
            white-space: nowrap;
            letter-spacing: 0.02em;
            background: linear-gradient(145deg, rgba(99,102,241,0.12), rgba(99,102,241,0.06));
            color: var(--accent-secondary);
            border: 1px solid rgba(99,102,241,0.25);
            box-shadow: 
                0 2px 8px rgba(99,102,241,0.08),
                inset 0 1px 0 rgba(255,255,255,0.05);
        }

        .btn-secondary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(99,102,241,0.2), transparent);
            transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
        }

        .btn-secondary:hover {
            background: linear-gradient(145deg, rgba(99,102,241,0.2), rgba(99,102,241,0.12));
            box-shadow: 
                0 6px 20px rgba(99,102,241,0.18),
                inset 0 1px 0 rgba(255,255,255,0.08);
            transform: translateY(-3px);
            border-color: rgba(99,102,241,0.4);
            color: #a5b4fc;
        }

        .btn-secondary:hover::before {
            left: 100%;
        }

        .btn-secondary:active {
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(99,102,241,0.12);
        }

        /* Danger Button */
        .btn-danger {
            font-family: var(--font-body);
            min-width: 48px;
            min-height: 48px;
            padding: 12px 24px;
            border-radius: 14px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            border: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            position: relative;
            overflow: hidden;
            background: linear-gradient(145deg, rgba(239,68,68,0.15), rgba(220,38,38,0.08));
            color: #f87171;
            border: 1px solid rgba(239,68,68,0.3);
        }

        .btn-danger:hover {
            background: linear-gradient(145deg, #ef4444, #dc2626);
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 8px 24px rgba(239,68,68,0.35);
        }

        /* Success Button */
        .btn-success {
            font-family: var(--font-body);
            min-width: 48px;
            min-height: 48px;
            padding: 12px 24px;
            border-radius: 14px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            border: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            background: linear-gradient(145deg, #22c55e, #16a34a);
            color: white;
            box-shadow: 0 4px 16px rgba(34,197,94,0.35);
        }

        .btn-success:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 28px rgba(34,197,94,0.45);
        }

        /* Ghost Button */
        .btn-ghost {
            font-family: var(--font-body);
            min-width: 48px;
            min-height: 48px;
            padding: 12px 24px;
            border-radius: 14px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            background: transparent;
            color: var(--text-secondary);
            border: 1px solid transparent;
        }

        .btn-ghost:hover {
            background: rgba(255,255,255,0.05);
            color: var(--text-primary);
            border-color: rgba(255,255,255,0.1);
        }

        /* Toggle Switch Styles */
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 26px;
            cursor: pointer;
        }
        
        .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: var(--text-muted);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 26px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2), inset 0 1px 3px rgba(0,0,0,0.2);
        }
        
        .toggle-slider::before {
            position: absolute;
            content: "";
            height: 20px;
            width: 20px;
            left: 3px;
            bottom: 3px;
            background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
        }
        
        .toggle-switch input:checked + .toggle-slider {
            background-color: var(--accent-primary);
            box-shadow: 0 2px 8px rgba(59,130,246,0.4), inset 0 1px 3px rgba(0,0,0,0.1);
        }
        
        .toggle-switch input:checked + .toggle-slider::before {
            transform: translateX(24px);
        }
        
        .toggle-switch:hover .toggle-slider {
            box-shadow: 0 3px 8px rgba(0,0,0,0.3);
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin-bottom: 32px;
        }

        /* Dark gray inputs and selects for better visibility */
        select, 
        input[type="text"], 
        input[type="email"], 
        input[type="tel"], 
        input[type="number"], 
        input[type="date"], 
        input[type="time"],
        input[type="password"],
        .search-box {
            min-height: 52px;
            padding: 14px 18px;
            font-size: 14px;
            font-weight: 500;
            border-radius: 14px;
            background: linear-gradient(145deg, rgba(30,41,59,0.9), rgba(15,23,42,0.95)) !important;
            color: var(--text-primary) !important;
            border: 1px solid rgba(59,130,246,0.2) !important;
            box-shadow: 
                inset 0 2px 4px rgba(0,0,0,0.2),
                0 1px 0 rgba(255,255,255,0.05);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            letter-spacing: 0.3px;
        }

        input[type="text"]::placeholder,
        input[type="email"]::placeholder,
        input[type="tel"]::placeholder,
        input[type="number"]::placeholder,
        input[type="password"]::placeholder,
        textarea::placeholder,
        .search-box::placeholder {
            color: rgba(148, 163, 184, 0.6);
            font-weight: 400;
        }
        
        textarea {
            min-height: 110px;
            padding: 16px 18px;
            font-size: 14px;
            font-weight: 500;
            line-height: 1.6;
            border-radius: 14px;
            background: linear-gradient(145deg, rgba(30,41,59,0.9), rgba(15,23,42,0.95)) !important;
            color: var(--text-primary) !important;
            border: 1px solid rgba(59,130,246,0.2) !important;
            box-shadow: 
                inset 0 2px 4px rgba(0,0,0,0.2),
                0 1px 0 rgba(255,255,255,0.05);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            resize: vertical;
        }

        select {
            min-height: 52px;
            padding: 14px 40px 14px 18px;
            font-size: 14px;
            font-weight: 500;
            border-radius: 14px;
            background: linear-gradient(145deg, rgba(30,41,59,0.9), rgba(15,23,42,0.95)) !important;
            color: var(--text-primary) !important;
            border: 1px solid rgba(59,130,246,0.2) !important;
            box-shadow: 
                inset 0 2px 4px rgba(0,0,0,0.2),
                0 1px 0 rgba(255,255,255,0.05);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
            background-repeat: no-repeat !important;
            background-position: right 16px center !important;
        }

        select:focus, 
        input:focus, 
        textarea:focus,
        .search-box:focus {
            background: linear-gradient(145deg, rgba(45,55,72,0.95), rgba(30,41,59,0.98)) !important;
            border-color: var(--accent-primary) !important;
            outline: none;
            box-shadow: 
                0 0 0 4px rgba(59,130,246,0.15),
                0 0 20px rgba(59,130,246,0.1),
                inset 0 2px 4px rgba(0,0,0,0.1);
            transform: translateY(-1px);
        }

        select:hover,
        input:hover,
        textarea:hover {
            border-color: rgba(59,130,246,0.4) !important;
        }

        select option {
            background: #1e293b;
            color: var(--text-primary);
            padding: 12px;
        }

        /* Modern Form Labels */
        label {
            display: block;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            transition: color 0.2s ease;
        }

        label:has(+ input:focus),
        label:has(+ select:focus),
        label:has(+ textarea:focus) {
            color: var(--accent-primary);
        }

        /* Greeting Section */
        .greeting-section {
            background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(99,102,241,0.08));
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            padding: 24px 32px;
            margin-bottom: 32px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: var(--shadow-lg);
        }

        .greeting-content h2 {
            font-size: 28px;
            font-weight: 800;
            background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 8px;
        }

        .greeting-content p {
            font-size: 15px;
            color: var(--text-secondary);
        }

        .time-display {
            text-align: right;
        }

        .current-time {
            font-size: 32px;
            font-weight: 800;
            color: var(--accent-primary);
            font-family: 'Monaco', 'Courier New', monospace;
            margin-bottom: 4px;
        }

        .current-date {
            font-size: 14px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .stat-card {
            background: linear-gradient(135deg, rgba(20,27,46,0.6), rgba(10,14,26,0.4));
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            padding: 24px;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .stat-card::after {
            content: '→';
            position: absolute;
            bottom: 16px;
            right: 16px;
            font-size: 20px;
            color: var(--accent-primary);
            opacity: 0;
            transform: translateX(-10px);
            transition: all 0.3s ease;
        }

        .stat-card:hover::before {
            transform: scaleX(1);
        }

        .stat-card:hover::after {
            opacity: 1;
            transform: translateX(0);
        }

        .stat-card:hover {
            transform: translateY(-6px) scale(1.02);
            box-shadow: 0 16px 48px rgba(110, 231, 183, 0.25), 0 0 0 1px rgba(110, 231, 183, 0.2);
            border-color: rgba(110, 231, 183, 0.4);
            background: linear-gradient(135deg, rgba(30,37,56,0.8), rgba(15,19,36,0.6));
        }

        .stat-card:active {
            transform: translateY(-4px) scale(0.98);
        }

        /* Stat Card Dropdown Styles */
        .stat-card-wrapper {
            position: relative;
        }

        .stat-card-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            background: linear-gradient(135deg, rgba(20,27,46,0.98), rgba(10,14,26,0.95));
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            padding: 8px;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(20px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(110, 231, 183, 0.1);
            min-width: 220px;
        }

        .stat-card-wrapper:hover .stat-card-dropdown,
        .stat-card-dropdown.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .stat-dropdown-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            color: var(--text-primary);
            font-size: 13px;
        }

        .stat-dropdown-item:hover {
            background: rgba(110, 231, 183, 0.1);
            color: var(--accent-primary);
        }

        .stat-dropdown-item .dropdown-icon {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            background: rgba(110, 231, 183, 0.1);
            border-radius: 6px;
        }

        .stat-dropdown-divider {
            height: 1px;
            background: var(--glass-border);
            margin: 8px 0;
        }

        .stat-dropdown-header {
            padding: 8px 16px;
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-muted);
            font-weight: 600;
        }

        .stat-card .dropdown-indicator {
            position: absolute;
            top: 12px;
            right: 12px;
            font-size: 10px;
            color: var(--text-muted);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .stat-card-wrapper:hover .dropdown-indicator {
            opacity: 1;
        }

        .stat-icon {
            font-size: 36px;
            margin-bottom: 12px;
        }

        .stat-label {
            font-family: var(--font-body);
            font-size: 12px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .stat-value {
            font-family: var(--font-display);
            font-size: 32px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 8px;
            letter-spacing: -0.02em;
        }

        .stat-change {
            font-family: var(--font-mono);
            font-size: 12px;
            font-weight: 500;
            padding: 6px 12px;
            border-radius: 8px;
            display: inline-block;
        }

        .stat-change.positive {
            background: rgba(34,197,94,0.15);
            color: var(--success);
        }

        .stat-change.negative {
            background: rgba(239,68,68,0.15);
            color: var(--danger);
        }

        .stat-change.warning {
            background: rgba(249,115,22,0.15);
            color: var(--warning);
        }

        .card {
            background: rgba(30, 41, 59, 0.5);
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            padding: 28px;
            margin-bottom: 24px;
            overflow: hidden;
            width: 100%;
            box-sizing: border-box;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        }

        .card-title {
            font-family: var(--font-display);
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 20px;
            color: var(--text-primary);
            letter-spacing: -0.02em;
        }

        .table-container {
            overflow-x: auto;
            margin-top: 20px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        th, td {
            padding: 16px;
            text-align: left;
            border-bottom: 1px solid var(--glass-border);
        }

        th {
            font-family: var(--font-display);
            background: var(--bg-glass);
            font-weight: 600;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--accent-primary);
        }

        td {
            font-family: var(--font-body);
            font-size: 14px;
            color: var(--text-secondary);
        }

        tr:hover {
            background: rgba(59,130,246,0.05);
        }

        .badge {
            font-family: var(--font-mono);
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 500;
            display: inline-block;
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }

        .badge-success { background: rgba(34,197,94,0.2); color: var(--success); border: 1px solid rgba(34,197,94,0.3); }
        .badge-warning { background: rgba(249,115,22,0.2); color: var(--warning); border: 1px solid rgba(249,115,22,0.3); }
        .badge-danger { background: rgba(239,68,68,0.2); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }
        .badge-info { background: rgba(59,130,246,0.2); color: var(--accent-primary); border: 1px solid rgba(59,130,246,0.3); }
        .badge-secondary { background: rgba(148,163,184,0.2); color: var(--text-secondary); border: 1px solid rgba(148,163,184,0.3); }

        .action-btn {
            font-family: var(--font-body);
            min-height: 48px;
            padding: 12px 16px;
            border-radius: 4px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            border: 1px solid transparent;
            transition: all 0.3s ease;
            margin-right: 6px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .action-btn.edit {
            background: rgba(59,130,246,0.1);
            color: var(--accent-primary);
            border-color: rgba(59,130,246,0.3);
        }

        .action-btn.delete {
            background: rgba(239,68,68,0.1);
            color: var(--danger);
            border-color: rgba(239,68,68,0.3);
        }

        .action-btn.view {
            background: rgba(34,197,94,0.1);
            color: var(--success);
            border-color: rgba(34,197,94,0.3);
        }

        .action-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(59,130,246,0.2);
        }

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(ellipse at center, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.95) 100%);
            backdrop-filter: blur(16px) saturate(180%);
            -webkit-backdrop-filter: blur(16px) saturate(180%);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            padding: 20px;
        }

        .modal-overlay.active {
            display: flex;
            animation: overlayFadeIn 0.3s ease-out;
        }

        @keyframes overlayFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal {
            background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(10, 15, 30, 0.99));
            border: 1px solid rgba(59,130,246,0.3);
            border-radius: 24px;
            padding: 0;
            max-width: 900px;
            width: 95%;
            box-shadow: 
                0 0 0 1px rgba(255,255,255,0.05),
                0 25px 80px rgba(0,0,0,0.6),
                0 0 100px rgba(59,130,246,0.1),
                inset 0 1px 0 rgba(255,255,255,0.1);
            max-height: 90vh;
            overflow: hidden;
            animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            backdrop-filter: blur(40px);
            -webkit-backdrop-filter: blur(40px);
            position: relative;
        }

        .modal::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(59,130,246,0.5), rgba(99,102,241,0.5), transparent);
        }

        .modal-content-wrapper {
            max-height: calc(90vh - 80px);
            overflow-y: auto;
            padding: 32px;
            scrollbar-width: thin;
            scrollbar-color: rgba(59,130,246,0.3) transparent;
        }

        .modal-content-wrapper::-webkit-scrollbar {
            width: 6px;
        }

        .modal-content-wrapper::-webkit-scrollbar-track {
            background: transparent;
        }

        .modal-content-wrapper::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, rgba(59,130,246,0.4), rgba(99,102,241,0.4));
            border-radius: 3px;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(40px) scale(0.9);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                max-height: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                max-height: 500px;
                transform: translateY(0);
            }
        }

        @keyframes slideUp {
            from {
                opacity: 1;
                max-height: 500px;
                transform: translateY(0);
            }
            to {
                opacity: 0;
                max-height: 0;
                transform: translateY(-20px);
            }
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 24px 32px;
            background: linear-gradient(180deg, rgba(59,130,246,0.08), transparent);
            border-bottom: 1px solid rgba(59,130,246,0.15);
            position: sticky;
            top: 0;
            z-index: 10;
            backdrop-filter: blur(10px);
        }

        .modal-title {
            font-size: 22px;
            font-weight: 700;
            background: linear-gradient(135deg, #fff 0%, rgba(59,130,246,0.9) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .modal-close {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            cursor: pointer;
            color: var(--text-muted);
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 12px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .modal-close:hover {
            color: #fff;
            background: rgba(255,107,107,0.2);
            border-color: rgba(255,107,107,0.4);
            transform: rotate(90deg);
        }

        .form-group {
            margin-bottom: 24px;
            position: relative;
        }

        .form-group.has-icon input,
        .form-group.has-icon select {
            padding-left: 48px;
        }

        .form-group .input-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 18px;
            color: var(--text-muted);
            pointer-events: none;
            transition: color 0.3s ease;
        }

        .form-group:focus-within .input-icon {
            color: var(--accent-primary);
        }

        .form-label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            font-weight: 700;
            color: var(--text-secondary);
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 1.2px;
            transition: all 0.3s ease;
        }

        .form-label .required {
            color: var(--danger);
            font-weight: 700;
        }

        .form-label .optional {
            color: var(--text-muted);
            font-weight: 400;
            font-size: 10px;
            text-transform: lowercase;
        }

        .form-input, .form-select, .form-textarea {
            width: 100%;
            padding: 16px 20px;
            background: linear-gradient(145deg, rgba(30,41,59,0.8), rgba(15,23,42,0.9));
            border: 2px solid rgba(59,130,246,0.15);
            border-radius: 16px;
            color: var(--text-primary);
            font-size: 15px;
            font-weight: 500;
            font-family: 'Inter', sans-serif;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(10px);
            box-shadow: 
                inset 0 2px 6px rgba(0,0,0,0.15),
                0 1px 0 rgba(255,255,255,0.03);
        }

        .form-input:focus, .form-select:focus, .form-textarea:focus {
            outline: none;
            border-color: var(--accent-primary);
            box-shadow: 
                0 0 0 4px rgba(59,130,246,0.12),
                0 0 30px rgba(59,130,246,0.08),
                inset 0 2px 6px rgba(0,0,0,0.1);
            transform: translateY(-2px);
            background: linear-gradient(145deg, rgba(45,55,72,0.9), rgba(30,41,59,0.95));
        }

        .form-input:hover, .form-select:hover, .form-textarea:hover {
            border-color: rgba(59,130,246,0.35);
            transform: translateY(-1px);
        }

        .form-textarea {
            resize: vertical;
            min-height: 120px;
            font-family: inherit;
            line-height: 1.6;
        }

        /* Input helper text */
        .form-helper {
            font-size: 11px;
            color: var(--text-muted);
            margin-top: 6px;
            padding-left: 4px;
        }

        .form-error {
            font-size: 11px;
            color: var(--danger);
            margin-top: 6px;
            padding-left: 4px;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        /* Enhanced input containers for modals and forms */
        input[type="text"],
        input[type="number"],
        input[type="email"],
        input[type="date"],
        input[type="time"],
        input[type="tel"],
        select,
        textarea {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        input[type="text"]:focus,
        input[type="number"]:focus,
        input[type="email"]:focus,
        input[type="date"]:focus,
        input[type="time"]:focus,
        input[type="tel"]:focus,
        select:focus,
        textarea:focus {
            outline: none;
        }

        /* Modern Checkbox styling */
        input[type="checkbox"],
        input[type="radio"] {
            appearance: none;
            -webkit-appearance: none;
            width: 22px;
            height: 22px;
            border: 2px solid rgba(59,130,246,0.3);
            border-radius: 6px;
            background: linear-gradient(145deg, rgba(30,41,59,0.8), rgba(15,23,42,0.9));
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }

        input[type="radio"] {
            border-radius: 50%;
        }

        input[type="checkbox"]:checked,
        input[type="radio"]:checked {
            background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
            border-color: var(--accent-primary);
            box-shadow: 0 0 12px rgba(59,130,246,0.4);
        }

        input[type="checkbox"]:checked::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 14px;
            font-weight: 700;
        }

        input[type="radio"]:checked::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 8px;
            height: 8px;
            background: white;
            border-radius: 50%;
        }

        input[type="checkbox"]:hover,
        input[type="radio"]:hover {
            border-color: var(--accent-primary);
            transform: scale(1.05);
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        @media (max-width: 600px) {
            .form-row {
                grid-template-columns: 1fr;
            }
        }

        .chart-container {
            position: relative;
            height: 300px;
            margin-top: 20px;
        }

        .data-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            margin: 20px 0;
        }

        .data-item {
            padding: 16px;
            background: var(--bg-glass);
            border: 1px solid var(--glass-border);
            border-radius: 12px;
        }

        .data-item-label {
            font-size: 12px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .data-item-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .search-bar {
            position: relative;
            margin-bottom: 20px;
        }

        .search-input {
            width: 100%;
            padding: 12px 16px 12px 44px;
            background: var(--bg-glass);
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            color: var(--text-primary);
            font-size: 14px;
        }

        .search-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 18px;
            color: var(--text-muted);
        }

        .kanban-board {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .kanban-column {
            background: var(--bg-glass);
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            padding: 20px;
        }

        .kanban-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--glass-border);
        }

        .kanban-title {
            font-size: 16px;
            font-weight: 700;
        }

        .kanban-count {
            background: rgba(59,130,246,0.2);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 700;
            color: var(--accent-primary);
        }

        .task-card {
            background: linear-gradient(135deg, rgba(20,27,46,0.9), rgba(10,14,26,0.8));
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .task-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(59,130,246,0.2);
        }

        .progress-bar {
            width: 100%;
            height: 8px;
            background: rgba(255,255,255,0.1);
            border-radius: 4px;
            overflow: hidden;
            margin-top: 8px;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
            transition: width 0.3s ease;
        }

        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 8px;
            margin-top: 20px;
        }

        .calendar-day {
            aspect-ratio: 1;
            min-height: 80px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            background: var(--bg-glass);
            border: 1px solid var(--glass-border);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 14px;
            padding: 8px;
        }

        .calendar-day:hover {
            background: var(--accent-primary);
            color: var(--bg-primary);
            transform: scale(1.05);
        }

        .calendar-day.today {
            background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
            color: var(--bg-primary);
            font-weight: 700;
        }

        .calendar-day.has-events {
            border: 2px solid var(--accent-primary);
            background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(99,102,241,0.05));
        }

        .priority-high {
            background: rgba(255,107,107,0.2);
            color: var(--danger);
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 600;
        }

        .priority-medium {
            background: rgba(255,184,107,0.2);
            color: var(--warning);
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 600;
        }

        .priority-low {
            background: rgba(96,165,250,0.2);
            color: var(--accent-tertiary);
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 600;
        }

        .team-card {
            background: linear-gradient(135deg, rgba(20,27,46,0.6), rgba(10,14,26,0.4));
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            padding: 24px;
            text-align: center;
            transition: all 0.3s ease;
        }

        .team-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--glow-accent);
            border-color: var(--accent-primary);
        }

        .team-avatar {
            font-size: 64px;
            margin-bottom: 16px;
        }

        .team-name {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .team-role {
            font-size: 14px;
            color: var(--text-muted);
            margin-bottom: 16px;
        }

        @media (max-width: 1400px) {
            .ai-insights-sidebar {
                width: 360px;
            }
            .main-content {
                margin-right: 360px;
                max-width: calc(100vw - 260px - 360px);
            }
            .calendar-grid {
                gap: 6px;
            }
            .calendar-day {
                font-size: 13px;
                min-height: 70px;
            }
        }

        @media (max-width: 1200px) {
            .ai-insights-sidebar {
                display: none;
            }
            .main-content {
                margin-right: 0;
                max-width: calc(100vw - 260px);
            }
            .calendar-grid {
                gap: 8px;
            }
            .calendar-day {
                font-size: 14px;
                min-height: 80px;
            }
        }

        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
            }
            .main-content {
                margin-left: 0;
                max-width: 100vw;
                padding: 12px;
            }
            
            /* Mobile-friendly stats grid */
            .stats-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 12px !important;
            }
            
            .stat-card {
                padding: 16px !important;
            }
            
            .stat-value {
                font-size: 20px !important;
            }
            
            /* Mobile-friendly cards */
            .card {
                padding: 16px !important;
                margin-bottom: 16px !important;
            }
            
            .card-title {
                font-size: 16px !important;
            }
            
            /* Mobile-friendly tables */
            .table-container {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
            
            table {
                font-size: 12px !important;
            }
            
            table th, table td {
                padding: 8px 6px !important;
                white-space: nowrap;
            }
            
            /* Mobile-friendly buttons */
            .btn, .btn-primary, .btn-secondary {
                padding: 10px 16px !important;
                font-size: 13px !important;
            }
            
            /* Mobile-friendly header */
            .header {
                flex-direction: column;
                gap: 12px;
            }
            
            .header h2 {
                font-size: 20px !important;
            }
            
            .header-actions {
                width: 100%;
                justify-content: flex-start;
                flex-wrap: wrap;
            }
            
            /* Mobile-friendly modals */
            .modal-content {
                width: 95% !important;
                max-width: 95% !important;
                max-height: 90vh !important;
                margin: 5vh auto !important;
            }
            
            /* Mobile-friendly grids */
            [style*="grid-template-columns: repeat(4"] {
                grid-template-columns: repeat(2, 1fr) !important;
            }
            
            [style*="grid-template-columns: repeat(3"] {
                grid-template-columns: repeat(2, 1fr) !important;
            }
            
            /* Mobile-friendly forms */
            [style*="grid-template-columns: 1fr 1fr"] {
                grid-template-columns: 1fr !important;
            }
            
            /* Hide non-essential columns on mobile */
            .hide-on-mobile {
                display: none !important;
            }
        }
        
        @media (max-width: 500px) {
            .stats-grid {
                grid-template-columns: 1fr !important;
            }
            
            .stat-card {
                padding: 12px !important;
            }
            
            .stat-icon {
                font-size: 28px !important;
            }
            
            .stat-value {
                font-size: 18px !important;
            }
            
            /* Extra small screen table handling */
            table th:nth-child(n+4), 
            table td:nth-child(n+4) {
                display: none;
            }
            
            /* Mobile navigation toggle */
            .mobile-menu-toggle {
                display: block !important;
            }
            
            /* Compact header on very small screens */
            .header h2 {
                font-size: 18px !important;
            }
            
            .header-subtitle {
                display: none;
            }
            
            /* Full-width buttons on mobile */
            .header-actions {
                flex-direction: column;
            }
            
            .header-actions button {
                width: 100%;
            }
            
            /* Scrollable filter panels */
            #searchFiltersPanel {
                max-height: 300px;
                overflow-y: auto;
            }
            
            #searchFiltersPanel > div:first-of-type {
                flex-direction: column;
            }
        }
        
        /* ==================== AI CHAT AGENT STYLES ==================== */
        .ai-chat-fab {
            position: fixed;
            bottom: 24px;
            right: 24px;
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background: linear-gradient(135deg, #3b82f6, #6366f1);
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4), 0 0 40px rgba(99, 102, 241, 0.2);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            transition: all 0.3s ease;
            animation: ai-pulse 2s infinite;
        }
        
        .ai-chat-fab:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 30px rgba(59, 130, 246, 0.5), 0 0 60px rgba(99, 102, 241, 0.3);
        }
        
        .ai-chat-fab.has-notifications::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 18px;
            height: 18px;
            background: #ef4444;
            border-radius: 50%;
            border: 3px solid var(--bg-primary);
            animation: notification-pulse 1.5s infinite;
        }
        
        .ai-chat-fab .notification-count {
            position: absolute;
            top: -2px;
            right: -2px;
            min-width: 22px;
            height: 22px;
            background: #ef4444;
            border-radius: 11px;
            font-size: 12px;
            font-weight: 700;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid var(--bg-primary);
        }
        
        @keyframes ai-pulse {
            0%, 100% { box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4), 0 0 40px rgba(99, 102, 241, 0.2); }
            50% { box-shadow: 0 4px 30px rgba(59, 130, 246, 0.6), 0 0 60px rgba(99, 102, 241, 0.4); }
        }
        
        @keyframes notification-pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.2); }
        }
        
        .ai-chat-panel {
            position: fixed;
            bottom: 100px;
            right: 24px;
            width: 420px;
            max-height: 600px;
            background: linear-gradient(180deg, rgba(20, 27, 46, 0.98), rgba(10, 14, 26, 0.98));
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5), 0 0 100px rgba(59, 130, 246, 0.1);
            z-index: 9998;
            display: none;
            flex-direction: column;
            overflow: hidden;
            backdrop-filter: blur(20px);
        }
        
        .ai-chat-panel.open {
            display: flex;
            animation: slideUp 0.3s ease;
        }
        
        @keyframes slideUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .ai-chat-header {
            padding: 20px;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.1));
            border-bottom: 1px solid var(--glass-border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .ai-chat-header-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .ai-chat-avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(135deg, #3b82f6, #6366f1);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
        }
        
        .ai-chat-title {
            font-weight: 700;
            font-size: 16px;
        }
        
        .ai-chat-status {
            font-size: 12px;
            color: var(--success);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .ai-chat-status::before {
            content: '';
            width: 8px;
            height: 8px;
            background: var(--success);
            border-radius: 50%;
            animation: status-pulse 2s infinite;
        }
        
        @keyframes status-pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        
        .ai-chat-close {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--text-secondary);
            padding: 4px;
            transition: color 0.2s;
        }
        
        .ai-chat-close:hover {
            color: var(--text-primary);
        }
        
        .ai-chat-tabs {
            display: flex;
            border-bottom: 1px solid var(--glass-border);
            padding: 0 12px;
        }
        
        .ai-chat-tab {
            flex: 1;
            padding: 12px;
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            transition: all 0.2s;
        }
        
        .ai-chat-tab:hover {
            color: var(--text-primary);
        }
        
        .ai-chat-tab.active {
            color: var(--accent-primary);
            border-bottom-color: var(--accent-primary);
        }
        
        .ai-chat-tab .tab-badge {
            background: var(--danger);
            color: white;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 10px;
            margin-left: 6px;
        }
        
        .ai-chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            max-height: 380px;
        }
        
        .ai-chat-message {
            display: flex;
            gap: 10px;
            animation: messageIn 0.3s ease;
        }
        
        @keyframes messageIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .ai-chat-message.user {
            flex-direction: row-reverse;
        }
        
        .ai-chat-message-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--bg-glass);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            flex-shrink: 0;
        }
        
        .ai-chat-message.ai .ai-chat-message-avatar {
            background: linear-gradient(135deg, #3b82f6, #6366f1);
        }
        
        .ai-chat-message-content {
            max-width: 85%;
            padding: 12px 16px;
            border-radius: 16px;
            font-size: 14px;
            line-height: 1.5;
        }
        
        .ai-chat-message.ai .ai-chat-message-content {
            background: var(--bg-glass);
            border: 1px solid var(--glass-border);
            border-top-left-radius: 4px;
        }
        
        .ai-chat-message.user .ai-chat-message-content {
            background: linear-gradient(135deg, #3b82f6, #6366f1);
            color: white;
            border-top-right-radius: 4px;
        }
        
        .ai-reminder-card {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.05));
            border: 1px solid rgba(245, 158, 11, 0.3);
            border-radius: 12px;
            padding: 14px;
            margin: 8px 0;
        }
        
        .ai-reminder-card.priority-high {
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(248, 113, 113, 0.05));
            border-color: rgba(239, 68, 68, 0.3);
        }
        
        .ai-reminder-card.priority-low {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.05));
            border-color: rgba(59, 130, 246, 0.3);
        }
        
        .ai-reminder-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        
        .ai-reminder-title {
            font-weight: 600;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .ai-reminder-time {
            font-size: 11px;
            color: var(--text-muted);
        }
        
        .ai-reminder-text {
            font-size: 13px;
            color: var(--text-secondary);
            margin-bottom: 10px;
        }
        
        .ai-reminder-action {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            border-radius: 6px;
            color: var(--text-primary);
            font-size: 12px;
            cursor: pointer;
            transition: background 0.2s;
        }
        
        .ai-reminder-action:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        
        .ai-chat-input-container {
            padding: 16px;
            border-top: 1px solid var(--glass-border);
            display: flex;
            gap: 10px;
        }
        
        .ai-chat-input {
            flex: 1;
            padding: 12px 16px;
            background: var(--bg-secondary);
            border: 1px solid var(--glass-border);
            border-radius: 24px;
            color: var(--text-primary);
            font-size: 14px;
            outline: none;
            transition: border-color 0.2s;
        }
        
        .ai-chat-input:focus {
            border-color: var(--accent-primary);
        }
        
        .ai-chat-send {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(135deg, #3b82f6, #6366f1);
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: transform 0.2s;
        }
        
        .ai-chat-send:hover {
            transform: scale(1.1);
        }
        
        .ai-quick-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            padding: 12px 16px;
            border-top: 1px solid var(--glass-border);
        }
        
        .ai-quick-action {
            padding: 6px 12px;
            background: var(--bg-glass);
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            color: var(--text-secondary);
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .ai-quick-action:hover {
            background: var(--accent-primary);
            color: white;
            border-color: var(--accent-primary);
        }
        
        @media (max-width: 500px) {
            .ai-chat-panel {
                width: calc(100vw - 48px);
                right: 24px;
                left: 24px;
            }
        }

        /* Reusable module loader - shown while data is being fetched */
        .module-loader {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 280px;
            padding: 40px;
            color: var(--text-secondary);
        }
        .module-loader-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid var(--glass-border);
            border-top-color: var(--accent-primary);
            border-radius: 50%;
            animation: module-loader-spin 0.8s linear infinite;
        }
        @keyframes module-loader-spin {
            to { transform: rotate(360deg); }
        }
        .module-loader-text {
            margin-top: 16px;
            font-size: 14px;
            color: var(--text-muted);
        }
