/* Modern UI Style sync based on ui-ux-pro-max */
        body {
            font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: var(--bg, #f8fafc);
            color: var(--text, #1e293b);
        }

        nav {
            background: rgba(255, 255, 255, 0.88) !important;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
            padding: 0.75rem 0 !important;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 4px 20px -5px rgba(0,0,0,0.03);
        }

        .nav-container h1 {
            color: #0f172a !important;
            font-weight: 700;
            font-size: 1.45rem;
            letter-spacing: -0.5px;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .nav-links a {
            text-decoration: none;
            color: #475569 !important;
            font-weight: 600;
            font-size: 14.5px;
            padding: 8px 16px !important;
            border-radius: 10px !important;
            transition: all 0.2s ease !important;
        }

        .nav-links a:hover {
            background-color: #f1f5f9 !important;
            color: #3b82f6 !important;
            text-decoration: none !important;
        }

        .user-dropdown:hover .user-dropdown-content {
            display: block !important;
        }

        .user-dropdown-btn {
            font-family: inherit;
            font-weight: 600;
            font-size: 14.5px;
            color: #3b82f6 !important;
            background-color: #eff6ff !important;
            border: 1px solid rgba(59, 130, 246, 0.1) !important;
            padding: 8px 16px !important;
            border-radius: 10px !important;
            transition: all 0.2s ease !important;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .user-dropdown-btn:hover {
            background-color: #dbeafe !important;
            color: #1d4ed8 !important;
        }

        .user-dropdown-content {
            display: none;
            position: absolute;
            right: 0;
            background: var(--card, white);
            min-width: 180px;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08) !important;
            border-radius: 12px !important;
            z-index: 1000;
            border: 1px solid #e2e8f0 !important;
            overflow: hidden;
            margin-top: 5px;
        }

        .user-dropdown-content a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px !important;
            color: #334155 !important;
            font-size: 14px !important;
            text-decoration: none;
            transition: background 0.2s;
        }

        .user-dropdown-content a:hover {
            background-color: #f8fafc !important;
            color: #3b82f6 !important;
        }

        @media (max-width: 768px) {
            .nav-links {
                gap: 8px;
            }
            .nav-links a {
                font-size: 13.5px;
                padding: 6px 12px !important;
            }
        }

        /* Modern Notification Flash Messages */
        .flash-message {
            padding: 14px 20px !important;
            border-radius: 12px !important;
            margin-bottom: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 600;
            font-size: 14.5px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02) !important;
            border: 1.5px solid transparent !important;
        }

        .flash-success {
            background-color: #ecfdf5 !important;
            color: #065f46 !important;
            border-color: #a7f3d0 !important;
        }

        .flash-danger {
            background-color: #fef2f2 !important;
            color: #991b1b !important;
            border-color: #fecaca !important;
        }

        .flash-warning {
            background-color: #fffbeb !important;
            color: #92400e !important;
            border-color: #fde68a !important;
        }

        .flash-info {
            background-color: #f0f9ff !important;
            color: #0369a1 !important;
            border-color: #b9e6fe !important;
        }

        /* Ticker Banner Style */
        .qms-ticker-wrap {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: linear-gradient(90deg, #1d4ed8, #3b82f6);
            color: #ffffff;
            z-index: 99999;
            height: 40px;
            line-height: 40px;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0,0,0,0.08);
            font-family: inherit;
            font-size: 14px;
            font-weight: 500;
        }

        .qms-ticker-content {
            display: inline-block;
            white-space: nowrap;
            padding-left: 100%;
            animation: qms-marquee 25s linear infinite;
        }

        @keyframes qms-marquee {
            0% { transform: translate3d(0, 0, 0); }
            100% { transform: translate3d(-100%, 0, 0); }
        }
    /* =========================================
       Auto-generated Dark Theme Overrides
       ========================================= */
    html.dark-theme {
        --bg: #0f172a !important;
        --card: #1e293b !important;
        --border: #334155 !important;
        --text: #cbd5e1 !important;
        --bg-main: #0f172a !important;
        --bg-card: #1e293b !important;
        --border-color: #334155 !important;
        --text-main: #cbd5e1 !important;
        --text-muted: #94a3b8 !important;
        --primary-light: rgba(59, 130, 246, 0.15) !important;
        --success-light: rgba(16, 185, 129, 0.15) !important;
        --warning-light: rgba(217, 119, 6, 0.15) !important;
        --danger-light: rgba(220, 38, 38, 0.15) !important;
    }