:root {
    --bg-dark: #0b192c;
    --card-bg: #1e3e62;
    --accent-color: #ff6500;
    --accent-hover: #e05800;
    --text-light: #f1f6f9;
    --text-muted: #94a3b8;
    --live-color: #ff2e63;
}

/* Fast Touch Feedback for Mobile */
* {
    touch-action: manipulation;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    padding-top: 75px;
    padding-bottom: 30px;
    user-select: none;
    -webkit-user-select: none;
}  

/* GPU Hardware Acceleration for Fixed Header */
.app-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: #10243d;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 12px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transform: translateZ(0);
}

.brand-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
}

.brand-subtitle {
    color: var(--accent-color);
    font-size: 0.75rem;
}

/* Image Container Placeholder - Blank Screen Aane Nahi Dega */
.img-placeholder {
    width: 100%;
    height: 180px;
    background-color: #112236;
    position: relative;
    overflow: hidden;
}

.course-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    contain: content; /* Isolates card layout repaint */
    transform: translateZ(0);
}

.course-banner {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease-in;
}

.course-body {
    padding: 15px;
}

.course-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 15px;
    margin-bottom: 15px;
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    contain: content;
}

.section-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    margin-top: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Buttons */
.btn-navy {
    background-color: var(--card-bg);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 6px 14px;
}

.btn-accent {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 8px 18px;
    font-weight: 600;
}

/* Loader */
#loader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 25, 44, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.spinner {
    width: 45px;
    height: 45px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } } 

.live-dot-pulse {
    width: 10px;
    height: 10px;
    background-color: var(--live-color);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 46, 99, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 46, 99, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 46, 99, 0); }
}

.live-badge {
    position: absolute;
    top: 6px; left: 6px;
    background: var(--live-color);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
}

/* --- Modern Rectangular & Classic Gold Search Bar --- */
.search-container {
    position: relative !important;
    width: 100% !important;
    margin: 14px 0 18px 0 !important;
    display: flex !important;
    align-items: center !important;
}

/* Icon perfectly centered inside the box */
.search-icon {
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #ff9800 !important; /* Warm Amber Gold */
    font-size: 15px !important;
    pointer-events: none !important;
    z-index: 5 !important;
    line-height: 1 !important;
    margin: 0 !important;
}

/* Sharp Rectangular Classic Dark Box */
#searchBox.search-box {
    width: 100% !important;
    height: 46px !important;
    padding: 0 16px 0 46px !important; /* Left space taaki icon text par na chadhhe */
    background: #0d1b2a !important;   /* Classic Deep Midnight Navy */
    color: #f1f6f9 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
    
    /* Pure rectangular feel with clean micro-curves */
    border-radius: 6px !important; 
    border: 1px solid rgba(255, 152, 0, 0.35) !important; /* Subtle gold border */
    
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease-in-out !important;
}

/* Subtle Placeholder */
#searchBox.search-box::placeholder {
    color: #64748b !important;
    font-weight: 400 !important;
    font-size: 13.5px !important;
}

/* Active / Focus Glow */
#searchBox.search-box:focus {
    background: #112235 !important;
    border-color: #ff9800 !important;
    box-shadow: 0 0 12px rgba(255, 152, 0, 0.28), inset 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    color: #ffffff !important;
}

.search-container:focus-within .search-icon {
    color: #ffa726 !important;
}

/* --- Side Drawer (Navigation) Width & Theme Fix --- */
.offcanvas.offcanvas-start {
    width: 78% !important;           /* Screen ka sirf ~78% hissa lega */
    max-width: 290px !important;     /* Badi screen par 290px se zyada nahi failega */
    background: #0f1d30 !important;   /* App ka dark theme color */
    color: var(--text-light) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Header styling */
.offcanvas-header {
    background: #0b192c;
    padding: 16px 20px;
}

/* Navigation Menu Items */
.drawer-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    text-decoration: none;
    font-size: 14.5px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-item:hover,
.drawer-item:active {
    background: rgba(255, 101, 0, 0.15);
    color: #fff;
    border-color: rgba(255, 101, 0, 0.3);
    transform: translateX(4px);
}

/* Dark backdrop background opacity */
.offcanvas-backdrop.show {
    opacity: 0.65;
}


