/* Locked View */
.locked-container {
    max-width: 600px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.locked-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.locked-cta-btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* 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;
    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;
}

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

/* Hover Shadow utility */
.hover-shadow {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-shadow:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.15);
}

/* Search Bar */
.search-bar {
    position: relative;
}
.search-bar .bi-search {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}
.search-bar .form-control {
    padding-left: 2.5rem;
    border-radius: 0.75rem;
}

/* Exam Card */
.exam-card {
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.exam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px -5px rgba(0,0,0,0.1);
}

/* Subject Card */
.subject-card {
    display: block;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: #1e293b;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px -5px rgba(0,0,0,0.1);
    color: var(--primary-color);
}

.subject-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subject-icon i {
    font-size: 1.75rem;
}

.subject-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.subject-count {
    font-size: 0.9rem;
    color: #64748b;
}

/* Soft Color Backgrounds */
.bg-primary-soft { background-color: #e0e7ff; }
.bg-success-soft { background-color: #dcfce7; }
.bg-danger-soft { background-color: #fee2e2; }
.bg-warning-soft { background-color: #fef9c3; }
.bg-info-soft { background-color: #cffafe; }



/* --- 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;
}

/* ================================================= */
/* CATEGORY CARDS (Study Notes Hierarchy)            */
/* ================================================= */

.category-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.category-card:hover {
    border-color: #5cd2d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.category-card .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
/* Random colors for folders */
.category-card:nth-child(4n+1) .icon-box { background: #e0e7ff; color: #4f46e5; }
.category-card:nth-child(4n+2) .icon-box { background: #dcfce7; color: #16a34a; }
.category-card:nth-child(4n+3) .icon-box { background: #fee2e2; color: #ef4444; }
.category-card:nth-child(4n+4) .icon-box { background: #fef3c7; color: #d97706; }

.category-info {
    flex: 1;
}
.category-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.1rem;
    font-size: 1.05rem;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}
.category-meta {
    font-size: 0.8rem;
    color: #64748b;
}
.category-arrow {
    color: #94a3b8;
    transition: color 0.2s;
}
.category-card:hover .category-arrow {
    color: #5cd2d2;
}

/* ================================================= */
/* BREADCRUMB NAVIGATION                             */
/* ================================================= */
.user-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
}
.user-breadcrumb .crumb-item {
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s;
    font-weight: 500;
}
.user-breadcrumb .crumb-item:hover {
    color: #4f46e5;
    text-decoration: underline;
}
.user-breadcrumb .crumb-active {
    color: #1e293b;
    font-weight: 600;
}
.user-breadcrumb .crumb-separator {
    color: #cbd5e1;
    font-size: 0.7rem;
}

/* ================================================= */
/* PDF ITEM STYLES                                   */
/* ================================================= */
.user-pdf-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.2s;
}
.user-pdf-item:hover {
    border-color: #5cd2d2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.user-pdf-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0; /* for truncation */
}
.user-pdf-icon {
    font-size: 2rem;
    color: #ef4444;
}
.user-pdf-details {
    flex: 1;
    min-width: 0;
}
.user-pdf-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.1rem;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}
.user-pdf-date {
    font-size: 0.8rem;
    color: #64748b;
}
.user-pdf-read-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .user-pdf-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .user-pdf-left {
        width: 100%;
    }
    .user-pdf-read-btn {
        width: 100%;
        text-align: center;
    }
}

/* ================================================= */
/* LOCKED PDF STYLES                                 */
/* ================================================= */
.user-pdf-locked {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.user-pdf-locked .user-pdf-title {
    color: #64748b;
}

.user-pdf-locked .user-pdf-icon {
    color: #94a3b8;
}

.badge-free {
    background-color: #22c55e !important;
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
}
