/* ===================================================
   SANKALP ACADEMY - Brand Theme Stylesheet
   "Sankalp Se Selection Tak" - By Suman Sir
   =================================================== */

:root {
    --primary-navy: #0F172A;
    --navy-light: #1E3A8A;
    --accent-red: #DC2626;
    --accent-gold: #F59E0B;
    --gold-dark: #D97706;
    --bg-light: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --bottom-nav-height: 64px;
}

[data-theme="dark"] {
    --bg-light: #0B1120;
    --card-bg: #151F32;
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --border-color: #273549;
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding-bottom: 80px; /* Space for mobile bottom bar */
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

/* Brand Navbar */
.navbar-brand-academy {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--navy-light) 100%);
    border-bottom: 3px solid var(--accent-gold);
}

.brand-emblem {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #D97706 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0F172A;
    font-weight: 800;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.brand-title {
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #FFFFFF;
    line-height: 1.1;
    font-size: 1.25rem;
}

.brand-sub {
    font-size: 0.72rem;
    color: var(--accent-gold);
    font-weight: 600;
    letter-spacing: 0.8px;
    display: block;
}

.brand-author {
    font-size: 0.68rem;
    color: #E2E8F0;
    opacity: 0.85;
}

/* Hero & Banners */
.hero-slider-card {
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
    color: #fff;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-slider-card::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Cards & UI Elements */
.app-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.app-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.course-card-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #0F172A;
}

.badge-live-pulse {
    background-color: var(--accent-red);
    color: white;
    font-weight: 700;
    animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* Bottom Navigation (Mobile First App) */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1040;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.06);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mobile-nav-item i {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.mobile-nav-item.active {
    color: var(--navy-light);
    background: rgba(30, 58, 138, 0.08);
}

[data-theme="dark"] .mobile-nav-item.active {
    color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.12);
}

@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* Online Test Arena */
.test-arena-header {
    background: var(--primary-navy);
    color: #fff;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.timer-pill {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #f87171;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-family: monospace;
    font-size: 1.1rem;
}

.question-palette-btn {
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 4px;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.palette-answered { background-color: #10B981 !important; color: #fff !important; border-color: #10B981 !important; }
.palette-review { background-color: #8B5CF6 !important; color: #fff !important; border-color: #8B5CF6 !important; }
.palette-unattempted { background-color: #F1F5F9; color: #475569; }
.palette-active { outline: 3px solid var(--accent-gold); }

/* Option Cards */
.quiz-option {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.quiz-option:hover {
    border-color: var(--navy-light);
    background-color: rgba(30, 58, 138, 0.04);
}

.quiz-option.selected {
    border-color: var(--navy-light);
    background-color: rgba(30, 58, 138, 0.08);
    font-weight: 600;
}

.option-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 14px;
    flex-shrink: 0;
}

.quiz-option.selected .option-badge {
    background: var(--navy-light);
    color: #fff;
}

/* Admin Sidebar */
.admin-sidebar {
    width: 260px;
    background: var(--primary-navy);
    min-height: 100vh;
    color: #94A3B8;
}

.admin-sidebar a {
    color: #CBD5E1;
    text-decoration: none;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    margin: 3px 12px;
    transition: all 0.2s ease;
}

.admin-sidebar a:hover, .admin-sidebar a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.admin-sidebar a.active {
    background: var(--navy-light);
    color: var(--accent-gold);
    font-weight: 600;
}

.admin-sidebar a i {
    font-size: 1.15rem;
    margin-right: 12px;
    width: 20px;
}
