/* --- Filter Sidebar --- */
.filter-sidebar {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
    border: 1px solid #e2e8f0;
}

.filter-sidebar .list-group-item {
    border: none;
    padding: 0.8rem 1rem;
    font-weight: 500;
    color: #334155;
    border-radius: 0.5rem !important; /* Ensure consistent border radius */
    margin-bottom: 0.25rem;
    transition: all 0.2s ease-in-out;
}

.filter-sidebar .list-group-item i {
    margin-right: 0.75rem;
    color: #94a3b8;
}

.filter-sidebar .list-group-item.active {
    background-color: #5cd2d2;
    color: white;
    box-shadow: 0 4px 10px -2px rgba(79, 70, 229, 0.5);
}

.filter-sidebar .list-group-item.active i {
    color: white;
}

.filter-sidebar .list-group-item:not(.active):hover {
    background-color: #f1f5f9;
}


/* --- Exam Card --- */
.exam-card {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exam-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.15);
}

.exam-card .card-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.1rem; /* Slightly larger title */
}

.exam-card .stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

.exam-card .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease;
}

.exam-card:hover .btn-primary {
    opacity: 1; /* Show button on hover */
}




/* =======================================================
   MOBILE COMPACT VIEW (Horizontal List Style)
   ======================================================= */

@media (max-width: 768px) {

    /* 1. कार्ड के अंदर Grid सिस्टम लागू करें */
    .exam-card .card-body {
        display: grid !important;
        /* पहली कॉलम 50px (Icon), दूसरी कॉलम बाकी जगह (Text) */
        grid-template-columns: 50px 1fr !important;
        gap: 5px 15px !important; /* बीच का गैप */
        padding: 12px 15px !important; /* पैडिंग कम करें */
        text-align: left !important; /* टेक्स्ट को लेफ्ट में लाएं */
        align-items: center !important; /* वर्टिकल सेंटर */
    }

    /* 2. Icon को छोटा करें और लेफ्ट में सेट करें */
    .exam-card .exam-icon {
        grid-row: 1 / span 3 !important; /* Icon तीनों लाइनों के बराबर ऊँचा रहे */
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
        margin: 0 !important; /* पुराना मार्जिन हटाएं */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* 3. Title (Heading) को एडजस्ट करें */
    .exam-card .card-title {
        grid-column: 2 !important; /* दूसरी कॉलम में रखें */
        font-size: 1rem !important;
        font-weight: 700 !important;
        margin-bottom: 0 !important;
    }

    /* 4. Description Text (छोटा करें) */
    .exam-card .card-text {
        grid-column: 2 !important;
        font-size: 0.8rem !important;
        color: #64748b !important;
        margin-bottom: 5px !important;
        line-height: 1.2 !important;

        /* अगर टेक्स्ट 2 लाइन से ज्यादा है तो काट दें */
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 5. Button (छोटा करें) */
    .exam-card .btn {
        grid-column: 2 !important;
        width: fit-content !important; /* फुल विड्थ से हटाएं */
        padding: 4px 12px !important;
        font-size: 0.75rem !important;
        border-radius: 4px !important;
        opacity: 1 !important; /* मोबाइल पर हमेशा दिखाएं */
    }

    /* कार्ड के बीच का गैप कम करें */
    #exam-list-container > div {
        margin-bottom: 10px !important;
    }
}


.state-card-hover:hover {
    background-color: #f0f4ff; /* Light Blue */
    border-color: #4f46e5 !important;
    transform: translateY(-2px);
}

/* --- Gold Icon & Premium Badge Styles --- */
.text-gold {
    color: #FFD700 !important; /* Golden Yellow */
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4); /* हल्का सा ग्लो */
}

.badge-premium {
    font-size: 0.6rem !important;
    background: linear-gradient(45deg, #FFD700, #FFA500); /* गोल्ड ग्रेडिएंट */
    color: #000 !important;
    font-weight: 700;
    margin-left: auto; /* राइट साइड में धक्का देने के लिए */
    border: 1px solid #e0c200;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: pulseBadge 2s infinite; /* एनिमेटेड इफेक्ट के लिए */
}

@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


/* --- Sticky Menu Item & Live Badge --- */
.sticky-nav-item {
    position: sticky;
    top: 0; /* टॉप पर चिपक जाएगा */
    z-index: 100; /* बाकी आइटम के ऊपर रहे */
    background-color: var(--sidebar-bg) !important; /* साइडबार का बैकग्राउंड */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* अलग दिखाने के लिए बॉर्डर */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3); /* परछाई ताकि उभरा हुआ दिखे */
}

.badge-live {
    font-size: 0.6rem !important;
    background-color: #ef4444; /* लाल रंग */
    color: white !important;
    font-weight: 700;
    margin-left: auto;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
    animation: blinkLive 1.5s infinite; /* ब्लिंक एनीमेशन */
}

@keyframes blinkLive {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* अगर यूजर इस पेज पर एक्टिव है तो स्टाइल */
.sticky-nav-item a.active {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.2), transparent) !important;
    border-left-color: #ef4444 !important;
}


/* Logo hover effect */
.sidebar-header a:hover .brand-name {
    color: var(--secondary-color);
    transition: 0.3s;
}

.target-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.75rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.target-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary-color);
}

#sidebar-goal-text {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.sidebar-header {
    padding: 1.25rem 1rem;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-name {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1.4rem;
    text-transform: lowercase; /* Professional look ke liye sab small */
}

.brand-tagline {
    font-size: 0.65rem;
    color: var(--sidebar-link-color);
    display: block;
    margin-top: -2px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}