/* DB Guru Style */
:root {
    --primary: #002147;     /* Dark Navy */
    --accent: #C5A021;      /* Gold */
    --sidebar-bg: #0f172a;  /* Slate 900 */
    --bg: #f8fafc;          /* Light slate */
    --text-dark: #1e293b;
    --border: #e2e8f0;
}

        * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, sans-serif; }
        body { background-color: var(--bg); color: var(--text-dark); overflow: hidden; }

        /* =================================================================
           1. GATEWAY VIEW (CENTERED LOGIN)
           ================================================================= */
        #login-view {
            height: 100vh; display: flex; justify-content: center; align-items: center;
            background: linear-gradient(135deg, var(--primary) 0%, #020617 100%); padding: 20px;
        }
        .login-card {
            background: white; width: 100%; max-width: 400px; padding: 40px;
            border-radius: 20px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); text-align: center;
        }
        .login-card h2 { color: var(--primary); font-weight: 800; margin-bottom: 5px; }
        .form-group { margin-bottom: 18px; text-align: left; }
        .form-group label { display: block; font-weight: 700; font-size: 0.8rem; color: var(--primary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
        .form-group input, .form-group select { width: 100%; padding: 12px 14px; border: 2px solid var(--border); border-radius: 10px; font-size: 1rem; transition: 0.2s; }
        .form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary); }
        
        /* =================================================================
           2. MAIN DASHBOARD STRUCTURAL LAYOUT
           ================================================================= */
        #panel-view { display: none; height: 100vh; width: 100vw; position: relative; }
        .dashboard-container { display: flex; height: 100vh; width: 100vw; }

        .sidebar-overlay {
            display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
            background: rgba(0,0,0,0.4); z-index: 40; opacity: 0; transition: opacity 0.3s ease; backdrop-filter: blur(2px);
        }

        .side-panel {
            width: 280px; background-color: var(--sidebar-bg); color: #94a3b8;
            display: flex; flex-direction: column; justify-content: space-between;
            flex-shrink: 0; border-right: 1px solid rgba(255,255,255,0.05);
            transition: transform 0.3s ease-in-out; z-index: 50;
        }
        .side-header { padding: 30px 24px; border-bottom: 1px solid rgba(255,255,255,0.05); text-align: center; position: relative; }
        .side-header h2 { color: white; font-size: 1.3rem; font-weight: 800; letter-spacing: 0.5px; }
        .side-header p { font-size: 0.75rem; color: var(--accent); font-weight: 700; margin-top: 4px; text-transform: uppercase; }
        
        .close-sidebar-btn {
            display: none; background: transparent; border: none; font-size: 1.5rem; color: #94a3b8; 
            position: absolute; top: 15px; right: 15px; cursor: pointer; transition: 0.2s;
        }
        .close-sidebar-btn:hover { color: white; transform: rotate(90deg); }

        .side-menu { flex: 1; padding: 24px 16px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
        .nav-btn {
            display: flex; align-items: center; gap: 14px; padding: 14px 16px;
            color: #94a3b8; font-weight: 600; font-size: 0.95rem; text-decoration: none;
            border-radius: 10px; cursor: pointer; border: none; background: transparent;
            width: 100%; text-align: left; transition: 0.2s ease;
        }
        .nav-btn i { font-size: 1.2rem; width: 24px; text-align: center; }
        .nav-btn:hover { background: rgba(255, 255, 255, 0.05); color: white; }
        .nav-btn.active { background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(0,0,0,0.2); position: relative; }
        .nav-btn.active::after { content: ''; position: absolute; right: 12px; width: 6px; height: 6px; background: var(--accent); border-radius: 5px; }

        .side-footer { padding: 20px 16px; border-top: 1px solid rgba(255,255,255,0.05); }
        .btn-logout { background: #ef4444; color: white; }
        .btn-logout:hover { background: #dc2626; }

        .main-workspace { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
        
        .top-bar {
            height: 75px; background: white; border-bottom: 1px solid var(--border);
            display: flex; justify-content: space-between; align-items: center; padding: 0 40px; flex-shrink: 0;
            box-shadow: 0 2px 5px rgba(0,0,0,0.01);
        }
        .top-bar-left { display: flex; align-items: center; gap: 15px; }
        
        .hamburger-btn {
            display: none; background: transparent; border: none; font-size: 1.6rem; color: var(--primary);
            cursor: pointer; transition: 0.2s; padding: 5px; border-radius: 8px;
        }
        .hamburger-btn:hover { background: #f1f5f9; }

        .top-bar h1 { font-size: 1.3rem; color: var(--primary); font-weight: 800; }
        .profile-box { display: flex; align-items: center; gap: 12px; }
        .profile-avatar { width: 40px; height: 40px; background: #e2e8f0; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: var(--primary); font-weight: bold; }

        .view-port { flex: 1; padding: 35px 40px; overflow-y: auto; }
        .view-content { display: none; animation: fadeIn 0.25s ease-in-out; }
        .view-content.active { display: block; }

        .content-card { background: white; border-radius: 16px; padding: 30px; border: 1px solid var(--border); box-shadow: 0 4px 10px rgba(0,0,0,0.02); margin-bottom: 25px; }
        .content-card h3 { color: var(--primary); font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
        
        .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
        
        .btn { width: 100%; padding: 14px; background: var(--accent); color: white; border: none; border-radius: 10px; font-size: 1rem; font-weight: bold; cursor: pointer; transition: 0.2s; display: inline-flex; justify-content: center; align-items: center; gap: 8px; text-decoration: none; }
        .btn:hover { opacity: 0.9; transform: translateY(-2px); }
        .btn-primary { background: var(--primary); }

        .table-custom { width: 100%; border-collapse: collapse; margin-top: 15px; }
        .table-custom th, .table-custom td { padding: 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.95rem; }
        .table-custom th { background: #f8fafc; color: var(--primary); font-weight: 700; }

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

        @media (max-width: 1024px) {
            .side-panel { position: fixed; top: 0; left: 0; height: 100vh; transform: translateX(-100%); }
            .side-panel.show { transform: translateX(0); box-shadow: 10px 0 30px rgba(0,0,0,0.2); }
            .hamburger-btn { display: block; }
            .close-sidebar-btn { display: block; }
            .sidebar-overlay.show { display: block; opacity: 1; }
            .grid-2 { grid-template-columns: 1fr; }
            .top-bar { padding: 0 20px; }
            .view-port { padding: 25px 20px; }
        }

        @media (max-width: 480px) {
            .top-bar h1 { font-size: 1.1rem; }
            .profile-box span { display: none; }
            .content-card { padding: 20px; }
        }

        .sub-tab-btn { background: transparent; color: #475569; transition: 0.2s; }
        .sub-tab-btn.active { background: white; color: var(--primary); box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
        .question-block { background: white; padding: 18px; border-radius: 10px; border: 1px solid var(--border); margin-bottom: 15px; }
        .question-block span { font-weight: 800; color: var(--primary); font-size: 0.9rem; text-transform: uppercase; display: block; margin-bottom: 10px; }
