:root {
    --sidebar-width: 300px;
    --primary-color: #3b82f6;
    --plyr-color-main: #3b82f6;
}


html[data-layout=topnav] .app-topbar {
    z-index: 1000 !important;
}


b, strong {
    font-weight: bolder !important;
}


.app-topbar {
    top: 0 !important;
}


.lesson-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.lesson-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.lesson-card .card-header-custom {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.lesson-progress-container {
    padding: 0 1.25rem 1.25rem 1.25rem;
}

.lesson-progress {
    height: 6px !important;
    border-radius: 3px;
}

.lesson-progress-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0d6efd;
}

.lesson-card .card-footer a {
    border-radius: 8px;
}


.page-header-box {
    min-height: 150px;
    background: linear-gradient(135deg, #345995 0%, #44ccff 100%);
    color: white;
    padding: 30px 0;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-header-box h1 {
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.full-width-container {
    width: 100%;
    margin: 0;
    padding: 0;
}


.progress-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

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

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

.progress-header .title {
    color: #007bff;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.3rem;
}

.progress-header .header-text i {
    color: #007bff;
    font-size: 1.1rem;
}

.progress-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(closest-side, white 79%, transparent 80%),
    conic-gradient(var(--progress-color) var(--progress-value), var(--progress-bg-color) 0);
    --progress-color: #007bff;
    --progress-bg-color: #e9ecef;
    --progress-value: 0deg;
}

.progress-circle span {
    font-weight: 700;
    font-size: 1rem;
    color: var(--progress-color);
}

.status-list {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.status-item {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.dot-success {
    background-color: #198754;
}

.dot-danger {
    background-color: #dc3545;
}

.dot-info {
    background-color: #0dcaf0;
}

.last-activity {
    font-size: 0.85rem;
    color: #6c757d;
}


#pdf-viewer-container {
    width: 100%;
    height: 700px;
    overflow-y: scroll;
    border: 1px solid #ddd;
    border-radius: 8px;
    position: relative;
    scroll-behavior: smooth;
    min-height: 700px;
}

.pdf-page-wrapper {
    margin-bottom: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.custom-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 15px;
    background-color: rgba(51, 51, 51, 0.9);
    color: white;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-radius: 8px 8px 0 0;
}

.page-indicator {
    font-size: 1.1rem;
    font-weight: bold;
}


#pdf-loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    border-radius: 8px;
}

#pdf-loading-spinner.d-none {
    display: none !important;
}



.player-controls .btn-icon {
    background: none;
    border: none;
    color: #007bff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.2s ease;
}

.player-controls .btn-icon:hover {
    color: #0056b3;
}

.player-controls .btn-icon:disabled {
    color: #ced4da;
    cursor: not-allowed;
}

.podcast-progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 15px;
    position: relative;
}

.podcast-progress-bar {
    height: 100%;
    background-color: #007bff;
    border-radius: 3px;
    width: 0;
}

.time-display {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}


.answer-radio {
    position: absolute;
    z-index: -1;
}


.wizard-box {
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    color: #333;
    border: 1px solid #dee2e6 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 6px !important;
    transition: all 0.2s ease-in-out;
}

.wizard-box:hover {
    border-color: #0d6efd !important;
    background-color: #f8f9fa !important;
}

.nav-pills .nav-link.active {
    background-color: #0d6efd !important;
    color: #ffffff !important;
    border-color: #0d6efd !important;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

.answer-option {
    transition: all 0.15s ease;
}


.bg-success-subtle {
    background-color: #d1e7dd;
}

.bg-danger-subtle {
    background-color: #f8d7da;
}

.bg-secondary-subtle {
    background-color: #e2e3e5;
}

.transition-hover {
    transition: transform 0.2s;
    cursor: pointer;
}

.transition-hover:hover {
    transform: translateY(-3px);
    border: 1px solid #0d6efd !important;
}


#errorReportModal .modal-content {
    background-color: #ffffff;
}

#errorReportModal .form-control:focus {
    background-color: #fff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
}

#errorReportModal .btn-primary {
    background-color: #4A90E2;
    border: none;
}

#errorReportModal .btn-primary:hover {
    background-color: #357ABD;
    transform: translateY(-1px);
}

.transition-all {
    transition: all 0.2s ease;
}


.add-favorite-btn {
    color: #dcdc00;
}


.tabs-container {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 12px;
    display: inline-flex;
    gap: 8px;
    margin-bottom: 30px;
    border: 1px solid #e5e7eb;
}

.tabs-container .tab-btn {
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: #4b5563;
    transition: 0.3s;
}

.tabs-container .tab-btn.active {
    background: #02c0ce;
    color: #fff;
}

.tabs-container .tab-btn:hover:not(.active) {
    background: #e5e7eb;
}

.leaderboard-wrapper .user-summary {
    text-align: center;
    color: #3b82f6;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
}

.leaderboard-wrapper .user-name {
    color: #3b82f6;
}

.leaderboard-wrapper .highlight {
    color: #ef4444;
}

.leaderboard-wrapper .table-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.leaderboard-wrapper .leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.leaderboard-wrapper .leaderboard-table thead th {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #000;
    font-size: 14px;
    font-weight: 700;
}

.leaderboard-wrapper .leaderboard-table tbody tr {
    transition: background 0.2s;
}

.leaderboard-wrapper .leaderboard-table tbody tr.alternate {
    background-color: #f9fafb;
}

.leaderboard-wrapper .leaderboard-table tbody tr:hover {
    background-color: #f3f4f6;
}

.leaderboard-wrapper .leaderboard-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #4b5563;
}

.leaderboard-wrapper .rank {
    font-weight: 700;
    color: #6b7280;
}

.leaderboard-wrapper .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.leaderboard-wrapper .avatar img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.leaderboard-wrapper .name {
    font-weight: 600;
    color: #1f2937;
}

.leaderboard-wrapper .stat {
    color: #6b7280;
    text-align: center;
}

.leaderboard-wrapper .score {
    font-weight: 700;
    color: #1f2937;
    text-align: center;
}

.leaderboard-wrapper .time {
    color: #6b7280;
    font-size: 13px;
    text-align: center;
}

.leaderboard-wrapper .leaderboard-table thead th:nth-child(n+3),
.leaderboard-wrapper .leaderboard-table td:nth-child(n+3) {
    text-align: center;
}


.leaderboard-wrapper .my-row {
    background-color: #eff6ff !important;
}

.leaderboard-wrapper .badge-me {
    font-size: 10px;
    background: #3b82f6;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: middle;
}

.leaderboard-wrapper .leaderboard-table .text-center {
    text-align: center;
}


.leaderboard-wrapper .medal-1 {
    color: #ffd700;
    font-weight: bold;
}

.leaderboard-wrapper .medal-2 {
    color: #c0c0c0;
    font-weight: bold;
}

.leaderboard-wrapper .medal-3 {
    color: #cd7f32;
    font-weight: bold;
}


.dashboard-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 30px;
}

.sidebar {
    width: 100%;
    flex-shrink: 0;
    border-radius: 10px;
}

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.main-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #eee;
    margin-bottom: 15px;
    object-fit: cover;
}

.welcome-text {
    font-size: 18px;
    margin-bottom: 20px;
    color: #4b5563;
}

.package-info {
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 25px;
}

.stats-mini-card {
    background: #fffaf5;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 25px;
    text-align: left;
}

.stat-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
}

.stat-item .icon {
    width: 24px;
    margin-right: 10px;
}

.stat-item .label {
    flex-grow: 1;
    color: #6b7280;
}

.stat-item .value {
    font-weight: 700;
    font-size: 15px;
}

.text-blue, .blue {
    color: var(--primary-blue);
}

.text-green, .green {
    color: #10b981;
}

.text-red, .orange {
    color: #f59e0b;
}

.side-nav a {
    display: block;
    text-align: left;
    padding: 12px 15px;
    text-decoration: none;
    color: #1f2937;
    font-weight: 600;
    font-size: 15px;
    transition: 0.2s;
    border-radius: 8px;
}

.side-nav a:hover {
    background: #f3f4f6;
    color: var(--primary-blue);
}

.side-nav a.active {
    color: var(--primary-blue);
}

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

.top-tabs {
    background: white;
    padding: 8px;
    border-radius: 12px;
    display: inline-flex;
    gap: 5px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.tab-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    background: transparent;
    color: #6b7280;
}

.tab-btn.active {
    background: black;
    color: white;
}

.info-banner {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 30px;
}

.text-red {
    color: var(--soft-red);
}

.table-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th {
    background: #fafafa;
    padding: 18px;
    text-align: left;
    font-size: 14px;
    color: #000;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-table td {
    padding: 15px 18px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.leaderboard-table tr.alternate {
    background-color: #fcfcfc;
}

.leaderboard-table tr.my-row {
    background-color: #eff6ff;
}

.rank-num {
    font-weight: 700;
    color: #9ca3af;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cell-avatar {
    width: 36px;
    height: 36px;
    background: #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #6b7280;
}

.me-avatar {
    background: var(--primary-blue);
    color: white;
}

.user-name {
    font-weight: 600;
}

.text-bold {
    font-weight: 700;
}


.sidebar {
    width: 100%;
    z-index: 1000;
}

.profile-card { padding: 30px 20px; text-align: center; }
.main-avatar img { width: 80px; height: 80px; border-radius: 50%; margin-bottom: 15px; }
.package-info { border: 1px solid #e5e7eb; padding: 10px; border-radius: 10px; font-size: 13px; margin-bottom: 20px; color: #6b7280; }
.stats-mini-card { background: #e7f7f8; border-radius: 12px; padding: 15px; text-align: left; margin-bottom: 20px; }
.stat-item { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; }
.side-nav a { display: block; text-align: left; padding: 6px; text-decoration: none; color: #333; font-weight: 600; border-radius: 8px; margin-bottom: 5px; }
.side-nav a.active { color: var(--primary-color); background: #eff6ff; }

.mobile-top-bar, .close-btn, .menu-overlay { display: none; }

.main-content { flex-grow: 1; padding: 30px; box-sizing: border-box; }



.select2-container--default .select2-selection--multiple {
    border: 1px solid #ced4da;
    border-radius: 8px;
    min-height: 45px;
    padding: 5px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.select2-container--default .select2-selection--choice {
    background-color: #3b82f6 !important;
    border: none !important;
    color: white !important;
    border-radius: 4px !important;
    padding: 2px 10px !important;
    margin-top: 5px !important;
    font-size: 14px;
}

.select2-container--default .select2-selection--choice__remove {
    color: rgba(255, 255, 255, 0.8) !important;
    margin-right: 5px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.select2-container--default .select2-selection--choice__remove:hover {
    color: white !important;
    background: transparent !important;
}

.select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

.select2-container--default .select2-search--inline .select2-search__field {
    margin-top: 7px;
}


.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #3b82f6 !important;
    color: white !important;
    border: none !important;
    padding: 5px 10px !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #dbeafe !important;
    color: #1e40af !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #3b82f6 !important;
    color: white !important;
}


.select2-container--default .select2-selection--multiple .select2-selection__choice {
    display: none !important;
}

.select2-selection-counter {
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #3b82f6;
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
}

.select2-container--default .select2-selection--multiple {
    position: relative;
    display: flex;
    align-items: center;
}



.custom-mobile-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}


.custom-mobile-scroll .nav-link {
    display: inline-block;
}



.documents-dropdown .dropdown-toggle::after {
    margin-left: auto;
}

.documents-dropdown .dropdown-item.active {
    background-color: #3b82f6 !important;
    color: #fff !important;
}

.documents-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #3b82f6;
}

.documents-dropdown .dropdown-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}




.podcast-player-container {
    max-width: 500px;
    background: #1a1a2e;
    border-radius: 20px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.podcast-header {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
}

.podcast-meta h5 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.plyr--audio .plyr__controls {
    background: transparent !important;
    padding: 20px !important;
    color: #fff !important;
}

.plyr--full-ui input[type=range] {
    color: var(--plyr-color-main);
}

.plyr__control--overlaid {
    background: var(--plyr-color-main);
}

.plyr--audio .plyr__control.plyr__tab-focus,
.plyr--audio .plyr__control:hover,
.plyr--audio .plyr__control[aria-expanded=true] {
    background: rgba(59, 130, 246, 0.2);
    color: #fff;
}


 .score-card {
     display: flex;
     align-items: center;
     justify-content: space-around;
     background-color: #ffffff;
     padding: 10px 15px;
     border-radius: 5px;
     box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
     width: fit-content;
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
     position: fixed;
     bottom: 0;
     right: 0;
     z-index: 999;
 }

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.score-label {
    font-size: 14px;
    font-weight: 600;
    color: #666666;
    text-transform: capitalize;
}

.score-value-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-success {
    background-color: #00a651;
    box-shadow: 0 0 15px rgba(0, 166, 81, 0.4);
}

.dot-danger {
    background-color: #ed1c24;
    box-shadow: 0 0 15px rgba(237, 28, 36, 0.4);
}

.divider {
    width: 2px;
    height: 15px;
    background-color: #f0f0f0;
    margin: 0 10px;
}



@media screen and (min-width: 993px) {
    .profile-card {
        position: relative;
        top: -7rem;
    }
}


@media (max-width: 992px) {
    .mobile-top-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        background: white;
        position: fixed;
        top: 0; width: 100%;
        z-index: 1100;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        box-sizing: border-box;
    }

    .hamburger-btn {
        background: none; border: none; cursor: pointer;
        display: flex; flex-direction: column; gap: 5px;
    }
    .hamburger-btn span { width: 25px; height: 3px; background: #333; border-radius: 2px; }

    .main-content { padding-top: 80px; width: 100%; }

    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 280px;
        transition: 0.3s ease;
        box-shadow: none;
        border-right: none;
    }

    .sidebar.open { left: 0; }
    .sidebar.open .menu-overlay { display: block; }

    .profile-card {
        height: 100vh;
        background: white;
        position: relative;
        z-index: 1200;
        border-radius: 0;

    }


    .close-btn {
        display: block;
        position: absolute;
        top: 15px; right: 15px;
        font-size: 28px; border: none; background: none; cursor: pointer;
    }

    .menu-overlay {
        position: fixed;
        top: 0; left: 0;
        width: 100vw; height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 1150;
    }
}

