/* --- Exam Header Card --- */
.exam-header-card {
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
}

/* --- Custom Tab Styles --- */
.exam-tabs {
    border-bottom: 2px solid #e2e8f0;
}

.exam-tabs .nav-link {
    color: #475569;
    font-weight: 600;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1.25rem;
}

.exam-tabs .nav-link.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

/* --- Test List Group --- */
.test-list-group {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin-top: 1.5rem;
}

.test-list-group .list-group-item {
    padding: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.test-list-group .list-group-item:last-child {
    border-bottom: none;
}

.btn-unlock {
    background-color: #ef4444;
    border-color: #ef4444;
    color: white;
}

.btn-unlock:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    color: white;
}


/* --- Pass Card --- */
.pass-card {
    border-radius: 1rem;
    border: 2px solid var(--primary-color);
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.1);
}

.pass-card-header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1.5rem;
}

.pass-card-header i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.pass-card .card-body {
    padding: 1.5rem;
}

.pass-card .price {
    text-align: center;
}


/* examDetail dashboard ke liye */
.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #0d6efd;
    box-shadow: none;
}

.accordion-item {
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: #0d6efd !important;
}

.test-row {
    transition: background 0.2s;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.test-row:hover {
    background-color: #f1f7ff;
}

/* --- Horizontal Categories Grid Layout --- */
.categories-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.category-card {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.category-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.category-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    border-radius: 16px 16px 0 0;
    margin-bottom: 0;
}

.category-header::before {
    content: "\F3FB"; /* bootstrap icon for folder */
    font-family: "bootstrap-icons";
    margin-right: 10px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.category-tests-container {
    background: transparent;
}

.category-tests-container .list-group-item {
    transition: background-color 0.2s, transform 0.2s;
}

.category-tests-container .list-group-item:last-child {
    border-bottom: none !important;
}

.category-tests-container .list-group-item:hover {
    background-color: #f8fafc !important;
}

/* --- Action Button Styling --- */
.btn-action-test {
    background-color: #4f46e5;
    border-color: #4f46e5;
    color: white;
    transition: all 0.2s ease;
}

.btn-action-test:hover {
    background-color: #4338ca;
    border-color: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.3) !important;
}

/* --- Custom Pill Tabs --- */
.custom-pill-tabs::-webkit-scrollbar {
    display: none;
}
.custom-pill-tabs .nav-link {
    color: #64748b;
}
.custom-pill-tabs .nav-link:hover {
    background-color: #f1f5f9;
    color: #334155;
}
.custom-pill-tabs .nav-link.active {
    background-color: #4f46e5 !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .categories-grid {
        gap: 1rem;
    }
}

/* Scroll Indicator for Category Tabs */
.tab-scroll-wrapper {
    position: relative;
}

/* Hide scrollbar for tabs but keep functionality */
.tab-scroll-wrapper .nav-pills::-webkit-scrollbar {
    display: none;
}
.tab-scroll-wrapper .nav-pills {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.tab-scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #4f46e5;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #ffffff;
    border: 2px solid #ffffff;
    transition: background 0.3s ease;
}

.tab-scroll-indicator i {
    color: #ffffff !important;
}

.tab-scroll-indicator:hover {
    background: #4338ca;
}

.tab-scroll-indicator.right {
    right: 0px;
}

.tab-scroll-indicator.left {
    left: 0px;
}

.tab-scroll-indicator.blink.right {
    animation: bounceXRight 2s infinite;
}

.tab-scroll-indicator.blink.left {
    animation: bounceXLeft 2s infinite;
}

@keyframes bounceXRight {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(3px); }
}

@keyframes bounceXLeft {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-3px); }
}