
        /* ---------- GLOBAL VARIABLES - SaaS Style with Glow ---------- */
        :root {
            --apex-orange: #f57c00;
            --apex-orange-dark: #e65100;
            --apex-orange-light: #fff3e0;
            --apex-orange-glow: rgba(245, 124, 0, 0.4);
            --apex-orange-glow-strong: rgba(245, 124, 0, 0.6);
            --apex-white: #ffffff;
            --apex-dark: #0a0a0f;
            --apex-gray-bg: #f8fafc;
            --apex-text-dark: #1a1a2e;
            --apex-text-muted: #64748b;
            --apex-shadow-sm: 0 10px 30px -10px rgba(0,0,0,0.05);
            --apex-shadow-md: 0 20px 40px -15px rgba(0,0,0,0.1);
            --apex-shadow-glow: 0 0 30px rgba(245, 124, 0, 0.15);
            --apex-border-glow: 1px solid rgba(245, 124, 0, 0.2);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: Inter, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #ffffff 0%, #fef9f0 100%);
            color: var(--apex-text-dark);
            scroll-behavior: smooth;
            overflow-x: hidden;
        }
        
        /* ========== TOP BAR ========== */
        .apex-topbar {
            background: rgba(255,255,255,0.9);
            backdrop-filter: blur(10px);
            padding: 8px 0;
            font-size: 0.85rem;
            border-bottom: 1px solid rgba(245,124,0,0.15);
            position: relative;
            z-index: 1001;
        }
        .apex-topbar a { color: #555; text-decoration: none; transition: 0.2s; }
        .apex-topbar a:hover { color: var(--apex-orange); }
        
        /* ========== MODERN SAAS NAVBAR ========== */
        .apex-navbar {
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(12px);
            box-shadow: 0 2px 25px rgba(0,0,0,0.03), 0 1px 0 rgba(245,124,0,0.1);
            padding: 0.7rem 0;
            transition: all 0.3s ease;
            position: sticky;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
        }
        
        .apex-navbar.scrolled {
            background: rgba(255,255,255,0.98);
            box-shadow: 0 4px 30px rgba(0,0,0,0.08);
            padding: 0.4rem 0;
        }
        
        .apex-brand {
            font-family: Inter, 'Segoe UI', Roboto, sans-serif;
            font-weight: 800;
            font-size: 1.8rem;
            background: linear-gradient(135deg, #1e1e2a 0%, #f57c00 80%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            letter-spacing: -0.5px;
            text-decoration: none;
        }
        
        .apex-nav-link {
            font-weight: 550;
            color: #2c2c36 !important;
            margin: 0 0.6rem;
            transition: 0.2s;
            position: relative;
            font-size: 0.95rem;
            text-decoration: none;
        }
        .apex-nav-link:hover, .apex-nav-link.active { color: var(--apex-orange) !important; }
        .apex-nav-link::after {
            content: ''; position: absolute; bottom: -6px; left: 0; width: 0;
            height: 2.5px; background: linear-gradient(90deg, var(--apex-orange), #ffb347);
            transition: 0.3s; border-radius: 4px;
        }
        .apex-nav-link:hover::after, .apex-nav-link.active::after { width: 100%; }
        
        .apex-btn-glow {
            background: linear-gradient(135deg, var(--apex-orange), #ff9f4a);
            border: none;
            color: white;
            border-radius: 40px;
            padding: 10px 28px;
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(245,124,0,0.3);
            text-decoration: none;
            display: inline-block;
        }
        .apex-btn-glow:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(245,124,0,0.4);
            color: white;
        }
        
        .apex-btn-outline-glow {
            background: transparent;
            border: 1.5px solid var(--apex-orange);
            color: var(--apex-orange);
            border-radius: 40px;
            padding: 8px 24px;
            font-weight: 600;
            transition: 0.3s;
            text-decoration: none;
            display: inline-block;
        }
        .apex-btn-outline-glow:hover {
            background: var(--apex-orange);
            color: white;
            box-shadow: 0 0 15px rgba(245,124,0,0.3);
        }
        
        /* Dropdown styles */
        .dropdown-menu {
            border-radius: 16px;
            border: none;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            backdrop-filter: blur(10px);
            background: rgba(255,255,255,0.95);
        }
        .dropdown-item:hover { background: var(--apex-orange-light); color: var(--apex-orange); }
        
        /* ========== HERO SECTION ========== */
        .apex-hero-slider {
            position: relative;
            width: 100%;
            overflow: hidden;
            background: linear-gradient(135deg, #ffffff 0%, #fff8f0 100%);
        }
        
        .apex-slide {
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 100px 20px;
            min-height: 60vh;
            position: relative;
            background-size: cover;
            background-position: center center;
            background-repeat: no-repeat;
        }
        .apex-slide::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);
            z-index: 1;
        }
        .apex-slide-content { max-width: 850px; margin: 0 auto; z-index: 2; position: relative; }
        .apex-slide-title {
            font-family: Inter, 'Segoe UI', Roboto, sans-serif;
            font-size: 3.5rem;
            font-weight: 800;
            line-height: 1.2;
            background: linear-gradient(135deg, #ffffff 0%, #ffe0b3 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            margin-bottom: 1.2rem;
            text-shadow: 0 2px 10px rgba(0,0,0,0.2);
        }
        .apex-slide-highlight { 
            background: linear-gradient(135deg, #f57c00, #ffb347);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        .apex-slide-text { font-size: 1.2rem; color: rgba(255,255,255,0.9); margin-bottom: 2rem; line-height: 1.6; }
        .apex-badge-glow {
            background: rgba(255,255,255,0.2);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.4);
            border-radius: 60px;
            padding: 6px 20px;
            font-size: 0.85rem;
            font-weight: 600;
            display: inline-block;
            margin-bottom: 1.8rem;
            color: #fff;
        }
        
        /* Main Card Styles */
        .main-card {
            background: white;
            border-radius: 32px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.08);
            margin: 30px auto;
            overflow: hidden;
        }
        
        .card-header-custom {
            background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
            padding: 25px 30px;
            color: white;
        }
        
        .card-header-custom h3 {
            font-weight: 700;
            margin: 0;
        }
        
        .btn-back {
            background: rgba(255,255,255,0.2);
            border: 1px solid rgba(255,255,255,0.3);
            border-radius: 40px;
            padding: 8px 20px;
            color: white;
            text-decoration: none;
            transition: all 0.3s;
        }
        
        .btn-back:hover {
            background: rgba(255,255,255,0.3);
            color: white;
        }
        
        .btn-submit {
            background: linear-gradient(135deg, #f57c00, #ff9f4a);
            border: none;
            border-radius: 40px;
            padding: 12px 30px;
            font-weight: 600;
            color: white;
            width: 100%;
        }
        
        .btn-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(245,124,0,0.3);
        }
        
        .result-table {
            width: 100%;
            border-radius: 20px;
            overflow: hidden;
        }
        
        .result-table th {
            background: #fff3e0;
            color: #f57c00;
            font-weight: 600;
            padding: 15px;
        }
        
        .result-table td {
            padding: 12px 15px;
            vertical-align: middle;
        }
        
        .badge-grade {
            padding: 5px 12px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 0.85rem;
        }
        
        .grade-A { background: #4caf50; color: white; }
        .grade-B { background: #2196f3; color: white; }
        .grade-C { background: #ff9800; color: white; }
        .grade-S { background: #f44336; color: white; }
        .grade-absent { background: #9e9e9e; color: white; }
        
        .analysis-card {
            background: linear-gradient(135deg, #ffffff, #fff8f0);
            border-radius: 24px;
            padding: 25px;
            margin-top: 25px;
            border: 1px solid rgba(245,124,0,0.15);
        }
        
        .stat-box {
            background: white;
            border-radius: 20px;
            padding: 20px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            transition: transform 0.3s;
        }
        
        .stat-box:hover {
            transform: translateY(-5px);
        }
        
        .stat-box i {
            font-size: 2rem;
            color: #f57c00;
            margin-bottom: 10px;
        }
        
        .stat-box h2 {
            font-size: 2rem;
            font-weight: 800;
            margin: 0;
            color: #f57c00;
        }
        
        .stat-box p {
            margin: 0;
            color: #666;
        }
        
        .insight-text {
            background: #e8f5e9;
            border-left: 4px solid #4caf50;
            padding: 15px 20px;
            border-radius: 16px;
            margin-top: 20px;
        }
        
        .insight-warning {
            background: #fff3e0;
            border-left: 4px solid #ff9800;
        }
        
        .insight-danger {
            background: #ffebee;
            border-left: 4px solid #f44336;
        }
        
        .download-btn {
            background: linear-gradient(135deg, #dc3545, #e74c3c);
            border: none;
            border-radius: 40px;
            padding: 12px 30px;
            font-weight: 600;
            color: white;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }
        
        .download-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(220,53,69,0.3);
            color: white;
        }
        
        /* Footer */
        .apex-footer {
            background: linear-gradient(135deg, #0a0a0f 0%, #111118 100%);
            color: #cbcbd4;
            padding: 60px 0 30px;
            position: relative;
            margin-top: 60px;
        }
        .apex-footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--apex-orange), transparent);
        }
        .apex-footer a { color: #cbcbd4; text-decoration: none; }
        .apex-footer a:hover { color: var(--apex-orange); }
        
        /* Back to top */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: linear-gradient(135deg, var(--apex-orange), #ffb347);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            z-index: 99;
            transition: 0.3s;
            opacity: 0;
            visibility: hidden;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(245,124,0,0.3);
        }
        .back-to-top.active { opacity: 1; visibility: visible; }
        .back-to-top:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(245,124,0,0.4); color: white; }
        
        .navbar-toggler { border: none; }
        .navbar-toggler:focus { box-shadow: none; }
        
        .input-group {
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            border-radius: 60px;
            overflow: hidden;
        }
        .input-group input {
            border: none;
            padding: 15px 25px;
            font-size: 1rem;
        }
        .input-group .btn-submit {
            width: auto;
            padding: 15px 35px;
        }
        
        .page-content {
            min-height: 60vh;
        }

        /* ========== MOBILE RESPONSIVE FOR RESULTS VIEW AREA ONLY ========== */
        @media (max-width: 768px) {
            .main-card .card-body .bg-light .row > div {
                margin-bottom: 12px;
            }
            .main-card .card-body .bg-light .row > div:last-child {
                margin-bottom: 0;
            }
            
            .table-responsive {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
            
            .result-table {
                min-width: 650px;
            }
            
            .result-table th,
            .result-table td {
                padding: 8px 10px;
                font-size: 0.8rem;
                white-space: nowrap;
            }
            
            .result-table th:first-child,
            .result-table td:first-child {
                position: sticky;
                left: 0;
                background: white;
                z-index: 1;
            }
            
            .result-table th:first-child {
                background: #fff3e0;
                z-index: 2;
            }
            
            .badge-grade {
                padding: 3px 8px;
                font-size: 0.7rem;
                white-space: nowrap;
            }
            
            .analysis-card {
                padding: 15px;
            }
            
            .analysis-card h4 {
                font-size: 1.2rem;
                margin-bottom: 20px;
            }
            
            .stat-box {
                padding: 12px 8px;
            }
            
            .stat-box i {
                font-size: 1.3rem;
                margin-bottom: 5px;
            }
            
            .stat-box h2 {
                font-size: 1.2rem;
            }
            
            .stat-box p {
                font-size: 0.7rem;
            }
            
            .analysis-card canvas {
                max-height: 200px !important;
            }
            
            .analysis-card .row .col-md-6 {
                margin-bottom: 20px;
            }
            
            .analysis-card .row .col-md-6:last-child {
                margin-bottom: 0;
            }
            
            .insight-text {
                padding: 12px 15px;
                font-size: 0.85rem;
            }
            
            .insight-text i {
                font-size: 0.9rem;
            }
            
            .download-btn {
                padding: 10px 20px;
                font-size: 0.85rem;
            }
            
            .card-header-custom {
                padding: 15px 20px;
            }
            
            .card-header-custom h3 {
                font-size: 1.2rem;
            }
            
            .card-header-custom p {
                font-size: 0.75rem;
            }
            
            .btn-back {
                padding: 6px 15px;
                font-size: 0.75rem;
            }
            
            .main-card .card-body {
                padding: 15px !important;
            }
        }

        @media (max-width: 480px) {
            .result-table {
                min-width: 580px;
            }
            
            .result-table th,
            .result-table td {
                padding: 6px 8px;
                font-size: 0.7rem;
            }
            
            .stat-box h2 {
                font-size: 1rem;
            }
            
            .stat-box p {
                font-size: 0.6rem;
            }
            
            .analysis-card h4 {
                font-size: 1rem;
            }
            
            .insight-text {
                font-size: 0.75rem;
                padding: 10px 12px;
            }
        }
    

:root{--apex-orange:#f57c00;--apex-orange-light:#fff3e0;--apex-text:#1a1a2e;--apex-muted:#64748b}
body{font-family:Inter,'Segoe UI',Roboto,sans-serif;background:linear-gradient(135deg,#fff 0%,#fff8f0 100%);color:var(--apex-text)}
.ex-hero{background:linear-gradient(135deg,#0f172a,#334155);color:#fff;padding:38px 0}
.ex-hero h1{font-weight:800;letter-spacing:-.4px;margin:0}
.ex-card{background:#fff;border-radius:20px;box-shadow:0 20px 45px -20px rgba(15,23,42,.18);overflow:hidden}
.ex-head{background:linear-gradient(135deg,#f57c00,#ff9f4a);color:#fff;padding:16px 22px}
.badge-soft{background:var(--apex-orange-light);color:#b45309;font-weight:600}
.sid-input{font-size:1.05rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.period-pill{display:inline-flex;align-items:center;border:1px solid #e2e8f0;border-radius:999px;padding:7px 16px;font-size:.85rem;font-weight:600;color:#475569;background:#fff;text-decoration:none}
.period-pill.active{background:var(--apex-orange);border-color:var(--apex-orange);color:#fff}
.period-pill:hover{border-color:var(--apex-orange)}
.result-hero{background:linear-gradient(135deg,#fff7ed,#ffedd5);border-radius:18px;padding:20px}
.big-score{font-size:2.4rem;font-weight:800;color:var(--apex-orange);line-height:1}
.rank-chip{width:52px;height:52px;border-radius:16px;display:flex;align-items:center;justify-content:center;font-size:1.4rem;font-weight:800;color:#fff}
table.res{width:100%;font-size:.92rem}
table.res thead th{background:#f8fafc;font-size:.7rem;letter-spacing:.05em;text-transform:uppercase;color:#64748b;border-bottom:1px solid #e2e8f0}
table.res td,table.res th{padding:.6rem .7rem;vertical-align:middle}

body{background:linear-gradient(135deg,#fff,#fef9f0)}
.ex-card{border-radius:0;box-shadow:none}
.ex-head{background:#fff8f0;color:#1a1a2e;padding:20px 24px;border-bottom:1px solid #ffecd2}
.ex-head .text-white{color:#1a1a2e!important}
.ex-head i,.apex{color:#f57c00}
.results-search{max-width:740px;margin:auto;padding:32px 24px}
.results-periods{padding:24px 24px 0}
.sid-input{padding:14px 18px;border-radius:12px}
.sid-input:focus{border-color:#f57c00;box-shadow:0 0 0 .2rem rgba(245,124,0,.15)}
table.res thead th{background:#fff3e0;color:#bd5b00;font-size:.85rem;text-transform:none}
table.res td,table.res th{padding:12px 15px}
.apex-slide-title{overflow-wrap:anywhere}
@media(max-width:767px){.apex-slide{min-height:340px;padding:60px 20px}.apex-slide-title{font-size:2rem}.main-card{border-radius:24px;margin:20px auto}.results-search{padding:24px 16px}.results-periods{padding:20px 16px 0}.ex-card>.p-4{padding:16px!important}table.res td,table.res th{padding:10px;font-size:.8rem}}
