/* Add custom style here */
.wrapper,
.content-wrapper {
    height: auto !important;
    min-height: 100vh;
}

.red-header {
    background-color: #EE4233;
    border-radius: 20px;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.red-header h1 {
    color: white;
    margin-bottom: 0;
    font-size: 24px;
    font-weight: 700;
}

.red-header .breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
}

.red-header .breadcrumb-item,
.red-header .breadcrumb-item a {
    color: white;
}

.red-header .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
    content: ">";
}

.vertical-separator {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.subheader-section {
    margin-bottom: 20px;
}

.subheader-section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
}

.subheader-section p {
    color: #78829D;
    font-size: 14px;
    margin-bottom: 0;
}

.search-action-bar {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.custom-search-input {
    width: 200px;
    height: 34px;
    padding: 10px 12px;
    gap: 6px;
    border-radius: 8px;
    border: 1px solid #DCDDDE;
    background-color: white;
    display: flex;
    align-items: center;
}

.custom-search-input input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 13px;
    line-height: normal;
    padding: 0;
}

.custom-search-input .search-icon {
    width: 14px;
    opacity: 0.5;
}


.search-action-bar .form-select {
    width: 180px;
    height: 34px;
    font-size: 13px;
    padding-top: 4px;
    padding-bottom: 4px;
    border-radius: 8px;
    border: 1px solid #DCDDDE;
    color: #78829D;
}

.btn-export,
.btn-add-center {
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    padding: 0 16px;
}

.btn-export {
    border-color: #22B058;
    color: #22B058;
    background: white;
}

.btn-export:hover {
    background: #E1FCE9;
    color: #22B058;
}

.btn-add-center {
    background-color: #22B058;
    color: white;
    border: none;
}

.btn-add-center:hover {
    background-color: #1a8a44;
    color: white;
}

.main-data-card {
    max-width: 1173px;
    width: 100%;
    background-color: rgba(223, 225, 225, 0.15);
    /* #DFE1E126 approx 16% */
    border: 1px solid #DCDDDE;
    border-radius: 16px;
    padding: 32px 0;
    display: flex;
    flex-direction: column;
    margin: 0 auto 40px;
}

.main-data-card .search-action-bar,
.main-data-card .custom-pagination,
.main-data-card .mobile-action-btns {
    padding-left: 31px;
    padding-right: 31px;
}


.main-data-card .search-action-bar {
    margin-bottom: 16px;
}

.main-data-card .custom-table-container {
    padding-left: 0;
    padding-right: 0;
}

.custom-table-container {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    /* Changed from hidden to allow dropdowns */
    box-shadow: none;
}

.custom-table {
    width: 100%;
}

.custom-table thead {
    background-color: #2A8BC9;
}

.custom-table thead th {
    background-color: #2A8BC9;
    color: white;
    font-weight: 500;
    vertical-align: middle;
    padding: 0 14px;
    height: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
    white-space: nowrap;
    /* Ensure icon stays on same row */
}

.custom-table thead th:last-child {
    border-right: none;
}

.custom-table thead th img {
    width: 10px;
    height: 10px;
    display: inline-block;
    vertical-align: middle;
}

.custom-table tbody tr {
    background-color: white;
    transition: background-color 0.2s ease;
}

.custom-table tbody tr:nth-child(even) {
    background-color: #F8FAFC;
    /* Softer tinted blue for premium look */
}

/* For tables with mobile-detail-row pairs, we need to adjust nth-child to skip hidden rows on desktop */
@media (min-width: 768px) {
    .custom-table tbody tr:nth-child(4n+3) {
        background-color: #F8FAFC;
    }

    /* If the table has mobile details, the even rows (2, 4...) are hidden Detail rows, so we reset them */
    .custom-table tbody tr.mobile-detail-row {
        background-color: transparent !important;
    }
}

.custom-table tbody tr:hover {
    background-color: #F1F5F9 !important;
    /* Subtle highlight on hover */
}

/* Mobile view: override alternating row bg to white */
@media (max-width: 767.98px) {
    .custom-table tbody tr:nth-child(even) {
        background-color: #ffffff;
    }

    .custom-table tbody tr:hover {
        background-color: #ffffff !important;
        /* Disable hover highlight on mobile */
    }
}

.custom-table tbody td {
    vertical-align: middle;
    padding: 15px;
    border-bottom: 1px solid #DCDDDE;
    /* Match card border color for consistency */
    border-right: 1px solid #DCDDDE;
}

.table-padding-sidebar td,
.table-padding-sidebar th {
    padding: 10px 12px;
}

.custom-table tbody td:last-child {
    border-right: none;
}

.table-padding-sidebar td .name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.font-weight-medium {
    font-weight: 500;
}

.text-link-blue {
    color: #2A8BC9 !important;
}

.center-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F9F9F9;
    padding: 5px;
    border: 1px solid #EEEEEE;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.center-info {
    display: flex;
    align-items: center;
}

.center-text .name {
    font-weight: 600;
    display: block;
    color: #313336;
}

.center-text .code {
    font-size: 12px;
    color: #78829D;
}

.exam-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 24px;
    padding: 4px 3px;
    gap: 1px;
    border-radius: 4px;
    background-color: rgba(42, 139, 201, 0.15);
    /* #2A8BC926 approx 15% */
    color: #2A8BC9;
    font-size: 11px;
    font-weight: 500;
}

.action-btns {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #EBF5FB;
    color: #2A8BC9;
    transition: all 0.2s;
    text-decoration: none;
    padding: 0;
}

.action-btn img {
    width: 14px;
}

.action-btn img[src*="Union.svg"] {
    height: 11px;
    width: auto;
}

.action-btn:hover {
    background-color: #2A8BC9;
}

.action-btn:hover img {
    filter: brightness(0) invert(1);
}

/* Subheader Action Bar for Mobile */
@media (max-width: 767.98px) {
    .subheader-mobile-actions {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        margin-top: 10px;
        width: 100%;
    }
}

/* Auth Pages Background Fix */
@media (max-width: 767.98px) {

    .content-area-block.h-100,
    .content-area-block .container.h-100,
    .content-area-block .h-100 {
        height: auto !important;
        min-height: 400px;
    }

    .wrapper.d-flex.flex-column {
        height: auto !important;
        min-height: 100vh;
    }

    /* Reduce background image height on mobile to ensure visibility */
    .mt-auto div[style*="background-image"] {
        height: 120px !important;
        background-size: auto 100% !important;
        background-position: bottom center !important;
    }
}

/* Auth Pages Background desktop refinement */
.mt-auto div[style*="background-image"] {
    background-size: auto 100%;
    background-position: bottom center;
    background-repeat: repeat-x;
}

/* High-fidelity Action Icon Styles */
.btn-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2A8BC91A;
    /* Light blue circular background */
    border-radius: 8px;
    /* Changed from 50% to 8px */
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    padding: 10px;
    /* Specific padding as requested */
}

.btn-icon:hover {
    background-color: #2A8BC9;
}

.btn-icon:hover img {
    filter: brightness(0) invert(1);
}

/* Standardized Module Card */
.module-card {
    background: #FFFFFF !important;
    border: 1px solid #DCDDDE;
    border-radius: 12px;
    overflow: visible;
    /* Changed from hidden to allow dropdowns */
    margin-bottom: 24px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.02);
}

.card-gray-header {
    background-color: #F9FAFB;
    padding: 16px;
    border-bottom: 1px solid #E5E7EB;
}

.custom-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 14px;
    letter-spacing: -0.01em;
    color: #78829D;
    height: 58px;
    padding: 14px 20px;
    border-top: 1px solid #E5E7EB;
}

.show-per-page,
.pagination-area {
    height: 26px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.show-per-page {
    gap: 8px;
}

.pagination-area {
    gap: 16px;
}

.pagination-controls .page-link {
    border: none;
    color: #78829D;
    margin: 0 4px;
    border-radius: 6px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 13px;
    background: transparent;
}

.pagination-controls .page-item.active .page-link {
    background-color: #2A8BC9;
    color: white;
}

.pagination-controls .page-item img {
    width: 16px;
}

/* Ensure single-line pagination on all devices */
.custom-pagination {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #FFFFFF;
    gap: 15px;
}

@media (max-width: 767.98px) {
    .custom-pagination {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center;
        width: 100% !important;
        height: 39.83px !important;
        padding: 9.61px 13.73px !important;
        border-top: 0.69px solid #E1E3E6 !important;
        font-size: 11px;
        overflow: hidden !important;
        background: #fff;
    }
    
    .custom-pagination .show-per-page {
        gap: 6.87px !important;
        font-size: 9.61px;
    }

    .custom-pagination .show-per-page .form-select {
        width: 39.22px !important;
        height: 20.6px !important;
        padding: 0 6.87px !important;
        font-size: 9.61px !important;
        border-radius: 4.12px !important;
        border-width: 0.69px !important;
        line-height: normal;
        background-position: right 4px center;
        background-size: 8px;
    }
    
    .custom-pagination .pagination-area {
        gap: 8px;
    }

    .pagination-area .text-muted {
        font-size: 10px;
    }
}

.custom-pagination::-webkit-scrollbar {
    display: none;
}

/* Mobile responsive styles */
@media (max-width: 767.98px) {
    .red-header {
        border-radius: 8px;
        padding: 8px 16px;
        gap: 8px;
        flex-direction: column;
        align-items: flex-start;
        height: auto;
    }

    .red-header .vertical-separator {
        display: none;
    }

    .red-header h1 {
        font-size: 20px;
        line-height: normal;
    }

    .main-data-card .search-action-bar,
    .main-data-card .custom-pagination,
    .main-data-card .mobile-action-btns {
        padding-left: 31px;
        /* Matching desktop px for consistent spacing */
        padding-right: 31px;
    }

    .custom-pagination {
        font-size: 11px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .show-per-page {
        gap: 6px;
    }

    .pagination-area {
        gap: 8px;
    }

    .pagination-controls .page-link {
        width: 22px;
        height: 22px;
        margin: 0 1px;
        font-size: 11px;
    }

    .pagination-controls .page-item img {
        width: 12px;
    }

    /* Fix: Remove display:none from container to restore pagination bar */
    .custom-pagination {
        display: flex !important;
    }

    .search-action-bar {
        justify-content: space-between;
        flex-wrap: nowrap !important;
    }

    .search-action-bar .custom-search-input,
    .search-action-bar .form-select {
        width: 50% !important;
        flex: 1;
    }

    /* Target ONLY the pseudo-elements and expand-btns to hide the unwanted icon */
    .custom-pagination::after,
    .custom-pagination::before,
    .custom-pagination *::after,
    .custom-pagination *::before,
    .pagination-area::after,
    .pagination-area::before,
    .expand-btn,
    .expand-header,
    [class*="expand"]::after,
    [class*="expand"]::before {
        display: none !important;
        background-image: none !important;
        content: none !important;
    }

    /* Ã¢â€â‚¬Ã¢â€â‚¬ Mobile table layout (style.css no longer interferes since .table class removed) Ã¢â€â‚¬Ã¢â€â‚¬ */
    .custom-table {
        display: table !important;
        table-layout: fixed !important;
        width: 100% !important;
    }

    .custom-table thead {
        display: table-header-group !important;
    }

    .custom-table thead tr {
        display: table-row !important;
        width: 100% !important;
    }

    .custom-table tbody {
        display: table-row-group !important;
    }

    .custom-table tbody tr {
        display: table-row !important;
        padding: 0 !important;
    }

    /* Col 1 (#): fixed 42px with right separator */
    .custom-table th:first-child,
    .custom-table td:first-child {
        display: table-cell !important;
        width: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;
        text-align: center !important;
        vertical-align: middle !important;
        padding: 10px 2px !important;
        white-space: nowrap !important;
        border-bottom: 1px solid #DCDDDE !important;
        border-right: 1px solid rgba(255, 255, 255, 0.25) !important;
        /* separator in header */
    }

    /* Separator for data rows uses subtle gray */
    .custom-table td:first-child {
        border-right: 1px solid #DCDDDE !important;
    }

    /* Col 2 (Center Name): takes all remaining space */
    .custom-table th:nth-child(2) {
        display: table-cell !important;
        width: auto !important;
        vertical-align: middle !important;
        padding: 10px 10px 10px 8px !important;
        border-bottom: 1px solid #DCDDDE !important;
        border-right: none !important;
        white-space: nowrap !important;
    }

    .custom-table td:nth-child(2) {
        display: table-cell !important;
        width: auto !important;
        padding: 0 !important;
        /* Remove td padding to allow full-height separator */
        border-bottom: 1px solid #DCDDDE !important;
        vertical-align: middle !important;
    }

    .custom-table td:nth-child(2)>div {
        height: 100%;
        display: flex;
        align-items: stretch;
        /* Allow children to fill height */
    }

    .custom-table td:nth-child(2) .center-info {
        padding: 10px 10px 10px 12px;
        flex-grow: 1;
        display: flex;
        align-items: center;
    }

    /* Hide all other columns (3+) on mobile */
    .custom-table th:nth-child(n+3),
    .custom-table td:nth-child(n+3) {
        display: none !important;
    }

    /* Hide Code: 1001 text on mobile */
    .custom-table .code {
        display: none !important;
    }

    /* Center name text truncation */
    .custom-table .center-text {
        min-width: 0;
        overflow: hidden;
    }

    .custom-table .center-text .name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        max-width: 170px;
    }

    /* Red Plus Icon Separator on Mobile - Full Height ('Full Touched') */
    .btn-plus-mobile {
        position: relative;
        padding: 0 12px !important;
        margin-left: 0;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-left: 1px solid #DCDDDE !important;
        /* Full height border */
        height: auto;
        min-height: 44px;
        /* Ensure a decent touch target and height */
    }

    .btn-plus-mobile::before {
        display: none !important;
        /* Remove the old partial-height separator */
    }
}

/* Branding Header Styles */
.branding-header {
    background-color: #fff;
    padding: 20px 0;
    text-align: center;
}

.branding-logo {
    max-height: 140px;
    width: auto;
    margin-bottom: 5px;
}

.branding-hindi-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 2px;
}

.branding-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

@media (max-width: 575.98px) {
    .branding-hindi-title {
        font-size: 14px;
    }

    .branding-title {
        font-size: 13px;
    }

    .branding-logo {
        max-height: 100px;
    }
}

.branding-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 0;
}

/* Student Profile Summary */
.profile-summary {
    background: #fff;
    background-image:
        radial-gradient(#e5e5e5 1px, transparent 1px);
    background-size: 20px 20px;
    padding: 40px 0;
    text-align: center;
}

.profile-avatar-ring {
    width: 130px;
    height: 130px;
    border: 5px solid #2B8BCB;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    padding: 2px;
    background: #fff;
}

.profile-avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.profile-verified {
    color: #28a745;
}

.profile-contact-info {
    font-size: 14px;
    color: #777;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Basic Details Card */
.details-info-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #fff;
}

.details-card-header {
    background-color: #2B8BCB;
    color: #fff;
    text-align: center;
    padding: 12px;
    font-weight: 600;
    font-size: 16px;
}

.details-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #f8f8f8;
}

.details-label {
    width: 30%;
    color: #888;
    font-size: 13px;
    font-weight: 500;
}

.details-value {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Exam Table overrides for header color */
.custom-table.exam-table thead th {
    background-color: #2B8BCB !important;
}

/* Exam Status Badges */
.badge-pending {
    background-color: #fff3cd;
    color: #856404;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
}

.badge-live {
    background-color: #f8d7da;
    color: #721c24;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
}

.badge-completed {
    background-color: #d1e7dd;
    color: #0f5132;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
}

.badge-valuation {
    background-color: #e2e3e5;
    color: #383d41;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
}

.badge-draft {
    background-color: #eee;
    color: #666;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
}

.text-pass {
    color: #28a745;
    font-weight: 600;
}

.text-fail {
    color: #dc3545;
    font-weight: 600;
}

.action-btn-group {
    display: flex;
    gap: 10px;
}

.action-btn-group .btn-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2A8BC926;
    border-radius: 8px;
    padding: 10px;
    opacity: 1;
}


/* Academy Details Hero */
.academy-hero {
    background-color: #fff;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

.academy-hero h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.membership-badge {
    background-color: #E8EAF6;
    color: #3F51B5;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 20px;
    vertical-align: middle;
}

.hero-metadata {
    font-size: 14px;
    color: #555;
    display: flex;
    gap: 20px;
}

.hero-metadata span b {
    color: #000;
    margin-right: 4px;
}

/* KPI Section */
.blue-card-header {
    background-color: #2B8BCB;
    color: #fff;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
}

.kpi-row {
    background: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    border: 1px solid #EEE;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-width: 1173px;
    height: 88px;
    align-items: center;
}

.kpi-item {
    text-align: left;
}

.kpi-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
    display: block;
}

/* Force consistency on inputs */
.login-field-group .form-control {
    width: 334px !important;
    height: 40px !important;
    box-sizing: border-box !important;
}


.remember-me-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 30px;
    color: #333;
    font-size: 15px;
    opacity: 1;
}

/* Hide the real checkbox */
.remember-me-container input[type="checkbox"] {
    position: absolute !important;
    left: -9999px !important;
}

/* Base checkbox box (The square) - Higher specificity to beat style.css */
.remember-me-container input[type="checkbox"]+label {
    position: relative;
    padding-left: 28px !important;
    /* 18px box + 10px gap */
    cursor: pointer;
    line-height: 18px;
    display: inline-block;
    padding-top: 6px;
    padding-bottom: 6px;
}

.remember-me-container input[type="checkbox"]+label:before {
    content: "";
    position: absolute;
    left: 0 !important;
    top: 6px !important;
    width: 18px !important;
    height: 18px !important;
    border: 1px solid #DCDDDE !important;
    border-radius: 4px !important;
    /* FORCING SQUARE with 4px radius */
    background: #fff !important;
    box-sizing: border-box !important;
}

/* Checked state - The Box */
.remember-me-container input[type="checkbox"]:checked+label:before {
    background-color: #2A8BC9 !important;
    border-color: #2A8BC9 !important;
    border-radius: 4px !important;
}

/* Checked state - The Tick Icon */
.remember-me-container input[type="checkbox"]:checked+label:after {
    content: "";
    position: absolute;
    left: 6px !important;
    top: 10px !important;
    width: 6px !important;
    align-items: center;
}

.password-input-wrapper .form-control {
    padding-right: 60px;
}

.password-input-wrapper .secure-text {
    position: absolute;
    right: 16px;
    color: #9CA3AF;
    font-size: 14px;
    pointer-events: none;
}


/* Search input with icon inside */
.search-input-wrapper {
    position: relative;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
    z-index: 1;
}

.search-input-wrapper .form-control {
    padding-left: 36px;
}

/* ======================================
   Academy Details - Mobile Responsive
   ====================================== */
@media (max-width: 767.98px) {

    /* Module cards full width with reduced padding */
    .module-card {
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 16px;
    }

    /* KPI row stacks into 2x2 grid on mobile */
    .kpi-row {
        flex-wrap: wrap;
        height: auto !important;
        gap: 0 !important;
        /* Use borders instead of gap */
    }

    .kpi-row .kpi-item {
        flex: 0 0 50%;
        max-width: 50%;
        border: none !important;
        /* Removed separators as per request */
        padding: 15px !important;
    }

    .kpi-value {
        color: #000 !important;
        /* Value color black in mobile view */
        font-weight: 600;
        font-size: 16px;
    }

    /* Academy Details Hero */
    .academy-hero h1 {
        font-size: 20px !important;
    }

    .hero-metadata {
        font-size: 11px !important;
        /* Slightly smaller to fit without scrolling */
        color: #78829D !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE and Edge */
        gap: 0 !important;
    }

    .hero-metadata::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari and Opera */
    }

    .meta-bullet {
        margin: 0 4px !important;
        /* Reduced horizontal spacing */
        color: #D1D5DB;
    }

    .membership-badge {
        padding: 4px 12px !important;
        font-size: 11px !important;
        background: rgba(123, 104, 238, 0.1) !important;
        color: #7B68EE !important;
        border-radius: 20px !important;
    }

    /* Table column hiding for expansion system */
    .academy-responsive-table th:nth-child(n+3),
    .academy-responsive-table td:nth-child(n+3) {
        display: none !important;
    }

    .academy-responsive-table {
        table-layout: fixed !important;
    }

    .academy-responsive-table th:first-child,
    .academy-responsive-table td:first-child {
        width: 42px !important;
    }

    /* Student List & Exam List: horizontal scroll instead of expand */
    .exam-table th:nth-child(n+3),
    .exam-table td:nth-child(n+3) {
        display: table-cell !important;
    }

    /* Override global column hide for academy-details tables */
    .exam-table th,
    .exam-table td {
        display: table-cell !important;
        white-space: nowrap;
    }

    .exam-table {
        display: table !important;
        min-width: 600px;
        table-layout: auto !important;
    }

    .exam-table thead {
        display: table-header-group !important;
    }

    .exam-table tbody {
        display: table-row-group !important;
    }

    .exam-table tbody tr {
        display: table-row !important;
    }

    /* Ensure table wrapper scrolls horizontally */
    .module-card .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Exam List search bar: stack on mobile */
    .module-card .p-3.border-bottom.d-flex {
        flex-wrap: wrap;
        gap: 8px !important;
    }

    .module-card .search-input-wrapper {
        max-width: 100% !important;
        flex: 1 1 100%;
    }

    /* Pagination on mobile */
    .custom-pagination {
        height: auto !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: 5px !important;
        padding: 10px 8px !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .show-per-page,
    .pagination-area {
        gap: 4px !important;
        flex-shrink: 0;
        font-size: 11px !important;
    }

    .show-per-page select {
        padding: 4px 6px !important;
        font-size: 11px !important;
        height: 30px !important;
        min-width: 50px !important;
    }

    .pagination-controls .page-link {
        padding: 4px 8px !important;
        font-size: 11px !important;
        min-width: 28px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Academy details header area */
    .academy-info-bar {
        flex-wrap: wrap;
        gap: 6px;
    }

    .academy-info-bar .info-item {
        font-size: 12px;
    }

    /* Edit/Close buttons: keep inline on mobile */
    .academy-action-btns {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        margin-top: 8px;
    }
}

/* Exam Detail Page Styles */
.exam-student-info-card {
    width: 100%;
    max-width: 1174px;
    height: auto;
    min-height: 100px;
    background: #FFFFFF;
    border: 1px solid #DCDDDE;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 10px 30px;
    gap: 20px;
    margin: 20px auto;
}

.exam-student-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.exam-student-details {
    flex-grow: 1;
}

.exam-student-name {
    font-size: 24px;
    font-weight: 700;
    color: #071437;
    margin-bottom: 5px;
}

.exam-student-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #78829D;
}

.exam-student-meta span b {
    color: #071437;
}

.exam-screenshots-box {
    width: 200px;
    height: 80px;
    border: 1px solid #DCDDDE;
    border-radius: 16px;
    padding: 8px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.exam-screenshots-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #071437;
}

.exam-screenshots-list {
    display: flex;
    gap: 5px;
}

.exam-screenshots-list img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #2A8BC9;
}

.exam-summary-header {
    margin-bottom: 20px;
}

.exam-id-badge {
    font-size: 20px;
    font-weight: 700;
    color: #071437;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-fail {
    background: #FFEEF3;
    color: #F1416C;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 6px;
}

.exam-meta-info {
    font-size: 13px;
    color: #78829D;
    margin-top: 5px;
}

.exam-meta-grid {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px 15px;
    margin-top: 15px;
}

.exam-meta-grid .meta-label {
    font-size: 13px;
    color: #78829D;
    font-weight: 500;
}

.exam-meta-grid .meta-value {
    font-size: 14px;
    color: #071437;
    font-weight: 600;
}

@media (max-width: 767px) {
    .exam-meta-grid {
        grid-template-columns: 100px 1fr;
        gap: 8px 10px;
    }

    .exam-meta-grid .meta-label {
        font-size: 12px;
    }

    .exam-meta-grid .meta-value {
        font-size: 13px;
    }
}

.exam-stats-grid {
    display: flex;
    gap: 0;
    border: 1px solid #2A8BC9;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

.exam-stat-item {
    flex: 1;
    padding: 20px;
    text-align: left;
    border-right: 1px solid #E1E3E6;
}

.exam-stat-item:last-child {
    border-right: none;
}

.exam-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #071437;
    line-height: 1;
}

.exam-stat-label {
    font-size: 12px;
    color: #78829D;
    margin-top: 5px;
}

.question-card {
    background: #FFFFFF;
    border: 1px solid #F1F1F4;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #F1F1F4;
    padding-bottom: 10px;
}

.question-number {
    font-size: 15px;
    font-weight: 700;
    color: #071437;
}

.question-score {
    font-size: 13px;
    color: #78829D;
}

.question-status {
    font-size: 12px;
    font-weight: 600;
}

.status-wrong {
    color: #F1416C;
}

.status-correct {
    color: #50CD89;
}

.status-na {
    color: #78829D;
}

.question-text {
    font-size: 14px;
    line-height: 1.6;
    color: #4B5675;
    margin-bottom: 20px;
}

.options-label {
    font-size: 14px;
    font-weight: 700;
    color: #071437;
    margin-bottom: 15px;
}

.options-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-btn {
    padding: 8px 20px;
    border: 1px solid #E1E3E6;
    border-radius: 8px;
    font-size: 13px;
    color: #4B5675;
    background: #F9F9F9;
    cursor: default;
    transition: all 0.2s;
}

.option-btn.selected-wrong {
    background: #FFEEF3;
    border-color: #F1416C;
    color: #F1416C;
}

.option-btn.selected-correct {
    background: #E8FFF3;
    border-color: #50CD89;
    color: #50CD89;
}

.option-btn.outline-wrong {
    border-color: #F1416C;
    color: #F1416C;
}

.answer-box {
    background: #F9F9F9;
    border: 1px solid #E1E3E6;
    border-radius: 8px;
    padding: 15px;
    font-size: 13px;
    color: #4B5675;
}

/* Question Navigation Sidebar */
.q-nav-card {
    background: #FFFFFF;
    border: 1px solid #DCDDDE;
    border-radius: 20px;
    padding: 25px;
}

.q-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.q-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #DCDDDE;
    color: #071437;
    text-decoration: none;
}

.q-circle.correct {
    background: #0E6027;
    border-color: #0E6027;
    color: white;
}

.q-circle.wrong {
    border-color: #EE4233;
    color: #EE4233;
}

.q-circle.unattended {
    border-color: #DCDDDE;
    color: #071437;
}

.q-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #78829D;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.legend-color.correct {
    background: #0E6027;
}

.legend-color.wrong {
    border: 1px solid #EE4233;
}

.legend-color.unattended {
    border: 1px solid #DCDDDE;
}

.exam-meta-grid {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px 15px;
    margin-top: 15px;
}

.exam-meta-grid .meta-label {
    font-size: 13px;
    color: #94A3B8;
    font-weight: 500;
}

.exam-meta-grid .meta-value {
    font-size: 14px;
    color: #071437;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .exam-student-info-card {
        flex-direction: column;
        height: auto;
        text-align: center;
        padding: 20px;
    }

    .exam-student-meta {
        justify-content: center;
        gap: 10px;
    }

    .exam-stats-grid {
        flex-wrap: wrap;
    }

    .exam-stat-item {
        flex: 0 0 50%;
        border-bottom: 1px solid #2A8BC926;
        border-right: 1px solid #2A8BC926;
    }

    .exam-stat-item:nth-child(even) {
        border-right: none;
    }

    .exam-stat-item:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

@media (max-width: 767px) {
    .exam-student-info-card {
        align-items: flex-start;
        text-align: left;
        padding: 15px;
        gap: 15px;
    }

    .exam-student-details {
        width: 100%;
    }

    .exam-student-name {
        font-size: 20px;
        margin-top: 5px;
    }

    .exam-student-meta {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 12px 20px;
        width: 100%;
        margin-top: 15px;
    }

    .exam-student-meta span {
        display: contents;
        /* Allows label and value to align in grid */
    }

    .exam-student-meta .meta-label {
        font-size: 13px;
        color: #94A3B8;
        /* Muted label color as per Image 7 */
        font-weight: 500;
        text-align: left;
    }

    .exam-student-meta .meta-value {
        font-size: 14px;
        color: #071437;
        font-weight: 600;
        text-align: right;
    }

    .exam-student-meta .separator {
        display: none;
    }

    .exam-screenshots-box {
        width: 100%;
        height: auto;
        padding: 15px;
    }

    .exam-screenshots-list img {
        width: 45px;
        height: 45px;
    }

    .exam-stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 2x2 grid */
    }

    .exam-stat-item {
        padding: 15px;
        border-right: 1px solid #E1E3E6 !important;
        border-bottom: 1px solid #E1E3E6 !important;
    }

    .exam-stat-item:nth-child(even) {
        border-right: none !important;
    }

    .exam-stat-item:nth-last-child(-n+2) {
        border-bottom: none !important;
    }

    .exam-stat-value {
        font-size: 22px;
    }

    .question-card {
        padding: 15px;
    }

    .question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .question-score,
    .question-status {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    .q-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .q-circle {
        width: 40px;
        height: 40px;
        font-size: 11px;
    }
}

/* Question Bank Styles */
.qb-stats-text {
    font-size: 14px;
    font-weight: 500;
    color: #2A8BC9;
    margin-bottom: 20px;
}

.qb-results-text {
    font-size: 13px;
    color: #78829D;
    margin-top: 15px;
    margin-bottom: 25px;
}

.qb-filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    background: #FFFFFF;
    padding: 0;
    margin-top: 10px;
}

.qb-search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.qb-search-box .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    opacity: 0.5;
}

.qb-search-box input {
    width: 100%;
    height: 44px;
    padding: 5px 15px 5px 45px;
    border: 1px solid #E1E3E6;
    border-radius: 8px;
    font-size: 14px;
    color: #071437;
    background: #FFFFFF;
}

.qb-filter-select {
    width: 180px;
    height: 44px;
    border: 1px solid #E1E3E6;
    border-radius: 8px;
    font-size: 14px;
    color: #78829D;
    padding: 0 15px;
    background-color: #FFFFFF;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%3C78829D' d='M2.146 4.646a.5.5 0 0 1 .708 0L6 7.793l3.146-3.147a.5.5 0 0 1 .708.708l-3.5 3.5a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.qb-card {
    background: #FFFFFF;
    border: 1px solid #E1E3E6;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}

.qb-card:hover {
    border-color: #2A8BC9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.qb-card-content {
    flex: 1;
}

.qb-question-header {
    font-size: 15px;
    font-weight: 600;
    color: #071437;
    margin-bottom: 10px;
    line-height: 1.5;
}

.qb-answer-info {
    font-size: 13.5px;
    color: #78829D;
}

.qb-answer-info span {
    margin-right: 15px;
}

.qb-correct {
    color: #50CD89 !important;
    font-weight: 600 !important;
}

.qb-delete-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #F1416C;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F1416C;
    background: #FFFFFF;
    margin-left: 20px;
    transition: all 0.2s;
}

.qb-delete-btn:hover {
    background: #FFEEF3;
    color: #D9214E;
}

@media (max-width: 991px) {
    .qb-filter-select {
        width: 150px;
    }
}

@media (max-width: 767px) {
    .qb-filter-bar {
        flex-direction: column;
    }

    .qb-search-box {
        min-width: 100%;
    }

    .qb-filter-select {
        width: 100%;
    }

    .qb-card {
        padding: 15px;
        position: relative;
    }

    .qb-delete-btn {
        margin-left: 10px;
        flex-shrink: 0;
    }
}

/* Create Exam Page Styles - Redesigned Stepper */
.exam-wizard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1174px;
    margin: 30px auto;
    gap: 40px;
}

.exam-stepper {
    display: flex;
    gap: 15px;
    flex-grow: 1;
    margin: 0;
    padding: 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.step-progress-bar {
    height: 6px;
    background: #E5E7EB;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.step-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #50CD89;
    width: 0;
    transition: width 0.3s;
}

.step-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-node {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #DCDDDE;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.step-node i {
    font-size: 12px;
    color: #50CD89;
    display: none;
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: #78829D;
}

/* Active & Complete States */
.step-item.active .step-progress-fill {
    width: 50%;
    /* Half filled for active? Or full? Image 18 shows partial */
}

.step-item.completed .step-progress-fill {
    width: 100%;
}

.step-item.active .step-node,
.step-item.completed .step-node {
    border-color: #50CD89;
}

.step-item.active .step-label,
.step-item.completed .step-label {
    color: #4B5675;
}

.step-item.completed .step-node i {
    display: block;
}

.step-item.active .step-node i {
    display: block;
    /* Image 18 shows checkmark for active step too */
}

/* Exam Action Bar */
.exam-action-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.exam-action-bar .btn-cancel {
    background: none;
    border: none;
    color: #3F4254;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 15px;
}

.exam-action-bar .btn-back {
    background: white;
    border: 1px solid #E1E3E6;
    color: #4B5675;
    padding: 10px 25px;
    font-weight: 600;
}

.exam-action-bar .btn-success {
    padding: 10px 35px;
    font-weight: 600;
}

/* Question Manager Empty State */
.question-manager-empty {
    background: #FFFFFF;
    border: 1px solid #DCDDDE;
    border-radius: 20px;
    padding: 60px 20px;
    text-align: center;
}

.empty-illustration {
    margin-bottom: 25px;
}

.empty-illustration img {
    max-width: 180px;
}

.empty-title {
    font-size: 16px;
    font-weight: 700;
    color: #071437;
    margin-bottom: 10px;
}

.empty-subtitle {
    font-size: 13px;
    color: #78829D;
    max-width: 400px;
    margin: 0 auto 25px;
}

/* Question Type Modal */
.type-modal-content {
    border-radius: 16px;
    padding: 30px;
}

.type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.type-select-btn {
    background: #F9F9F9;
    border: 1px solid #E1E3E6;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #4B5675;
    transition: all 0.2s;
}

.type-select-btn:hover {
    background: #fff;
    border-color: #2A8BC9;
    color: #2A8BC9;
    box-shadow: 0 4px 12px rgba(42, 139, 201, 0.1);
}

.type-select-btn-full {
    grid-column: span 2;
}

@media (max-width: 767px) {
    .exam-wizard-header {
        flex-direction: column;
        gap: 20px;
        margin: 20px auto;
    }

    .exam-stepper {
        width: 100%;
        gap: 8px;
    }

    .step-label {
        font-size: 11px;
    }

    .exam-action-bar {
        justify-content: center;
        width: 100%;
    }

    .exam-action-bar .btn {
        flex: 1;
        padding: 10px 15px;
    }
}

/* AI Question Modal Styles */
.ai-modal-icon {
    text-align: center;
    margin-bottom: 25px;
}

.ai-modal-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.ai-field-group {
    margin-bottom: 20px;
}

.ai-field-label {
    font-size: 14px;
    font-weight: 600;
    color: #071437;
    margin-bottom: 8px;
    display: block;
}

.btn-generate-main {
    background-color: #50CD89;
    border-color: #50CD89;
    color: white;
    width: 100%;
    padding: 12px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    margin-top: 10px;
    transition: all 0.3s;
}

.btn-generate-main:hover {
    background-color: #47b97a;
    border-color: #47b97a;
    color: white;
    box-shadow: 0 4px 12px rgba(80, 205, 137, 0.2);
}

.btn-try-again {
    background-color: #A8E0C1;
    border-color: #A8E0C1;
    color: white;
    width: 100%;
    padding: 12px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    margin-top: 10px;
    transition: all 0.3s;
}

.btn-try-again:hover {
    background-color: #96ccae;
    border-color: #96ccae;
    color: white;
}

/* AI Results Modal Styles */
.ai-results-header {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.selectable-q-card {
    background: #FFFFFF;
    border: 1px solid #DCDDDE;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 15px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.selectable-q-card:hover {
    background: #F8FAFC;
}

.selectable-q-card.selected {
    border-color: #2A8BC9;
}

.q-select-check {
    width: 20px;
    height: 20px;
    background: #2A8BC9;
    border-radius: 50%;
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.selectable-q-card.selected .q-select-check {
    display: flex;
}

.btn-add-selected {
    background-color: #28a745;
    /* Image 25 shows a solid green */
    border-color: #28a745;
    color: white;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
}

.btn-add-selected:hover {
    background-color: #218838;
    color: white;
}

.btn-outline-try-again {
    border: 1px solid #28a745;
    color: #28a745;
    background: white;
    padding: 10px 45px;
    border-radius: 8px;
    font-weight: 600;
}

.view-more-link {
    color: #2A8BC9;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 20px;
}

.view-more-link:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .ai-results-header {
        flex-direction: column;
        width: 100%;
    }

    .ai-results-header .btn {
        width: 100%;
    }

    .q-select-check {
        right: 15px;
    }
}

/* Question Preview Styles */
.preview-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.preview-stats-row .subheader-title {
    font-size: 20px;
}

.preview-score {
    font-size: 14px;
    font-weight: 500;
    color: #78829D;
}

.question-preview-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.question-item-card {
    background: #FFFFFF;
    border: 1px solid #DCDDDE;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
}

.question-item-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.question-content {
    flex-grow: 1;
}

.question-number-text {
    font-size: 14px;
    font-weight: 700;
    color: #4B5675;
    margin-bottom: 5px;
}

.question-text-main {
    font-size: 14px;
    color: #071437;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.5;
}

.question-answer-detail {
    font-size: 13px;
    color: #78829D;
}

.question-answer-detail b {
    color: #50CD89;
    font-weight: 600;
}

.btn-delete-question {
    width: 38px;
    height: 38px;
    border: 1px solid #F1416C26;
    border-radius: 8px;
    background: #FFEEF3;
    color: #F1416C;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-delete-question:hover {
    background: #F1416C;
    color: white;
}

/* Question Navigation Sidebar */
.q-nav-card {
    background: #FFFFFF;
    border: 1px solid #DCDDDE26;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    padding: 25px;
    position: sticky;
    top: 20px;
}

.q-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.q-nav-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #DCDDDE;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #071437;
    background: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.q-nav-circle:hover {
    border-color: #2A8BC9;
    color: #2A8BC9;
}

.q-nav-circle.active {
    background: #2A8BC9;
    border-color: #2A8BC9;
    color: white;
}

.btn-add-more {
    border: 1px solid #2A8BC9;
    color: #2A8BC9;
    background: white;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 10px;
    display: inline-block;
    transition: all 0.2s;
}

.btn-add-more:hover {
    background: #2A8BC9;
    color: white;
}

@media (max-width: 991px) {
    .q-nav-card {
        position: static;
        margin-bottom: 25px;
    }
}

@media (max-width: 767px) {
    .preview-stats-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .question-item-card {
        padding: 15px;
        align-items: flex-start;
    }

    .btn-delete-question {
        flex-shrink: 0;
    }

    .q-nav-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 10px;
    }
}

/* Login Page Specific Styles */
.login-form-wrapper {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
}

.login-form-wrapper h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 18px;
    letter-spacing: -0.01em;
    text-align: center;
    color: #333;
    margin-bottom: 5px;
}

.login-subtext {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 14px;
    letter-spacing: 0%;
    text-align: center;
    color: #78829D;
}

.login-subtext a {
    color: #2A8BC9 !important;
    text-decoration: none;
    font-weight: 500;
}

.login-subtext a:hover {
    text-decoration: underline;
}

.login-form-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 32px;
    justify-content: center;
    margin-bottom: 24px;
}

@media (max-width: 767px) {
    .login-form-grid {
        flex-wrap: wrap;
    }
}

.login-field-group {
    width: 334px;
    text-align: left;
}

.login-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    min-height: 22.5px;
}

.login-label-row a {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 14px;
    letter-spacing: 0%;
    color: #2A8BC9;
    text-decoration: none;
}

.login-label-row a:hover {
    text-decoration: underline;
}

.btn-login-main {
    background-color: #2A8BC9;
    color: white;
    border: none;
    border-radius: 8px;
    width: 334px;
    height: 40px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 14px;
    letter-spacing: -0.01em;
    margin: 0 auto;
    display: block;
    transition: all 0.3s;
}

.btn-login-main:hover {
    background-color: #2170a4;
    color: white;
}

/* Login Page Specific Styles */
.login-form-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.login-form-wrapper h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 18px;
    letter-spacing: -0.01em;
    text-align: center;
    color: #333;
    margin-bottom: 5px;
}

.login-subtext {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 14px;
    letter-spacing: 0%;
    text-align: center;
    color: #78829D;
}

.login-form-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 32px;
    justify-content: center;
    margin-bottom: 24px;
}

@media (max-width: 767px) {
    .login-form-grid {
        flex-wrap: wrap;
    }
}

.login-field-group {
    width: 334px;
    text-align: left;
}

.login-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    min-height: 22.5px;
}

.login-label-row label {
    margin-bottom: 0;
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.login-label-row a {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 14px;
    letter-spacing: 0%;
    color: #2A8BC9;
    text-decoration: none;
}

.login-label-row a:hover {
    color: #2A8BC9 !important;
    text-decoration: underline;
}

.btn-login-main {
    background-color: #2A8BC9;
    color: white;
    border: none;
    border-radius: 8px;
    width: 334px;
    height: 40px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 14px;
    letter-spacing: -0.01em;
    margin: 0 auto;
    display: block;
    transition: all 0.3s;
}

.btn-login-main:hover {
    background-color: #2170a4;
    color: white;
}

/* Mobile Detail Row Styles */
.mobile-detail-row {
    background-color: #fff !important;
}

.mobile-detail-row.d-none {
    display: none !important;
}

.mobile-detail-content {
    padding: 0;
    background-color: #fff;
}

.detail-item {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 10px 15px;
    border-bottom: 1px solid #f1f1f1;
}

.detail-item:last-of-type {
    border-bottom: none;
}

.detail-item .label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #94A3B8;
    font-weight: 500;
    width: 100px;
    flex-shrink: 0;
    text-align: left;
}

.detail-item .value {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #333;
    font-weight: 600;
    flex: 1;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.collapse-link {
    padding: 15px;
    text-align: left;
}

.collapse-link a {
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}

.collapse-link a {
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

/* Red Plus Circle Button */
.btn-plus-mobile {
    display: none;
    /* Hidden by default, shown on mobile via media query */
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.btn-plus-mobile img {
    display: block;
}

@media (min-width: 768px) {
    .mobile-detail-row {
        display: none !important;
    }
}

/* Password Input with Secure Label */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-control {
    padding-right: 65px !important;
}

.password-input-wrapper .secure-text {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #A0A5B1;
    pointer-events: none;
}

/* Add Center Modal Layout */
.modal-create-center {
    max-width: 940px !important;
}

.modal-create-center .modal-content {
    min-height: 934px;
    border-radius: 12px;
    border: none;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
}

/* Academy Details Header Actions */
.header-action-close,
.header-action-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 41px !important;
    height: 34px !important;
    background: #FFFFFF;
    border: 1px solid #DCDDDE !important;
    border-radius: 6px !important;
    font-family: 'Inter', sans-serif;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 12px;
    letter-spacing: 0%;
    color: #333 !important;
    text-decoration: none;
    padding: 11px 1px !important;
    /* Reduced side padding to fit text in 41px */
}

.header-action-edit:hover,
.header-action-close:hover {
    background-color: #f9f9f9;
}

/* High-Fidelity Custom Dropdowns */
.custom-dropdown {
    position: relative;
    display: inline-block;
}

.custom-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1050;
    /* Increased z-index */
    display: none;
    min-width: 200px;
    padding: 8px 0;
    margin: 8px 0 0;
    font-size: 13px;
    color: #333;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.custom-dropdown-menu.show {
    display: block;
}

.custom-dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    clear: both;
    font-weight: 500;
    color: #313336;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.custom-dropdown-item:hover {
    background-color: #F9FAFB;
    color: #313336;
    text-decoration: none;
}

.custom-dropdown-item.active {
    background-color: #F3F4F6;
}

.custom-dropdown-item.text-danger {
    color: #D92D20 !important;
}

.custom-dropdown-item.text-danger:hover {
    background-color: #FEF3F2;
}

/* Directional logic classes */
.custom-dropdown.drop-up .custom-dropdown-menu {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 8px;
}

.custom-dropdown.drop-left .custom-dropdown-menu {
    left: auto;
    right: 0;
}

/* Student List High-Fidelity Rework */
.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 4px;
}

.section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #78829D;
    margin-bottom: 0;
}

.btn-export-green {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #10B981 !important;
    border-radius: 8px !important;
    color: #10B981 !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    transition: all 0.2s;
}

.btn-export-green:hover {
    background-color: #10B981 !important;
    color: white !important;
}

.btn-export-green img {
    width: 16px;
}

.btn-plus-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #E11D48 !important;
    border: none !important;
    border-radius: 50% !important;
    color: white !important;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    line-height: 1;
}

.btn-plus-red:hover {
    background-color: #BE123C !important;
}

.search-input-wrapper-white {
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    padding: 4px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
}

.search-input-wrapper-white .form-control {
    border: none;
    padding: 0;
    background: transparent;
}


/* Student List & Action Dropdown Premium Refinements */

.token-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #EBF5FB !important;
    color: #2A8BC9 !important;
    border-radius: 8px !important;
    font-weight: 600;
    font-size: 14px;
}

.mobile-detail-content-premium {
    padding: 10px 0;
}

.mobile-detail-content-premium .detail-item {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 12px 15px;
    border-bottom: 1px solid #F1F5F9;
    background: transparent !important;
}

.mobile-detail-content-premium .detail-item:last-of-type {
    border-bottom: none;
}

.mobile-detail-content-premium .detail-item .label {
    color: #94A3B8;
    font-size: 14px;
    font-weight: 500;
    width: 32%;
    margin: 0;
    flex-shrink: 0;
}

.mobile-detail-content-premium .detail-item .value {
    color: #1E293B;
    font-size: 14px;
    font-weight: 500;
    text-align: right;
    /* Changed from left to match design */
    flex: 1;
}

.mobile-detail-content-premium .collapse-link {
    padding: 15px;
    text-align: left;
}

.mobile-detail-content-premium .collapse-link a {
    color: #E11D48 !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

/* Red Plus Circle - Mobile only toggle visibility handled in HTML */
.btn-plus-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #E11D48 !important;
    border-radius: 50% !important;
    color: white !important;
    border: none !important;
    font-size: 14px;
    padding: 0;
    line-height: 1;
}

/* Custom Dropdown Styling (Image 3) */
.custom-dropdown-menu {
    border: none !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    padding: 8px !important;
    min-width: 240px !important;
}

.custom-dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 16px !important;
    color: #64748B !important;
    /* Grayish for Download/Email */
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    transition: all 0.2s;
    text-decoration: none;
}

.custom-dropdown-item:hover {
    background-color: #F8FAFC !important;
    color: #1E293B !important;
}

.custom-dropdown-item.active {
    color: #1E293B !important;
    /* Dark black for View Detail */
    background: transparent !important;
}

.custom-dropdown-item.text-danger {
    color: #E11D48 !important;
    /* Red for Delete */
}

.custom-dropdown-item i {
    margin-right: 12px;
    font-size: 16px;
}