/* Theme Colors from .cursorrules */
:root {
    --brand-primary: #0c57f0;
    --brand-secondary: #1b6ec2;
    --brand-accent: #ed7323;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #fcfc4c;
    --info: #0b5ed7;
    --radius: 10px;
    
    /* Default font - GCSE theme */
    --font-family: "Inter", Arial, sans-serif;
}

/* KS2 Theme - Fredoka Font */
[data-theme="KS2"],
[data-theme="[KS2]"] {
    --font-family: "Fredoka", "Inter", Arial, sans-serif;
}

/* GCSE Theme - Inter Font (default) */
[data-theme="GCSE"],
[data-theme="[GCSE]"] {
    --font-family: "Inter", Arial, sans-serif;
}

/* 11PLUS Theme - Sofia Pro Soft Font */
[data-theme="11PLUS"],
[data-theme="[11PLUS]"] {
    --font-family: "sofia-pro-soft", sans-serif;
}

/* Accessibility Font Size - Dynamic scaling using CSS custom property */
:root {
    --accessibility-font-scale: 1; /* Default 100% */
}

body.accessibility-font-active .quiz-panel,
body.accessibility-font-active .quiz-panel *,
body.accessibility-font-active .sidebar-panel,
body.accessibility-font-active .sidebar-panel *,
body.accessibility-font-active .question-text-container,
body.accessibility-font-active .question-text-container *,
body.accessibility-font-active .answer-option,
body.accessibility-font-active .answer-label,
body.accessibility-font-active .completion-panel,
body.accessibility-font-active .completion-panel *,
body.accessibility-font-active main p,
body.accessibility-font-active main div,
body.accessibility-font-active main span {
    font-size: calc(1em * var(--accessibility-font-scale)) !important;
}

/* Reading Mode - Warm colors optimized for screen reading */
body.reading-mode {
    background-color: #fdf6e3 !important;
    color: #5c4a1f !important;
}

body.reading-mode .quiz-panel,
body.reading-mode .sidebar-panel,
body.reading-mode .completion-panel {
    background-color: #fff9e6 !important;
    color: #5c4a1f !important;
}

body.reading-mode .question-text-container {
    background-color: #fffbf0 !important;
    color: #5c4a1f !important;
    padding: 15px;
    border-radius: 8px;
}

body.reading-mode .answer-option {
    background-color: #fffef8 !important;
    color: #5c4a1f !important;
}

body.reading-mode .answer-option:hover {
    background-color: #fff9e6 !important;
}

body.reading-mode .answer-label {
    color: #5c4a1f !important;
}

body.reading-mode main {
    background-color: #fdf6e3 !important;
}

html, body {
    font-family: var(--font-family);
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    width: 100%;
    overflow-x: hidden; /* Prevents horizontal scrolling */
}

/* Apply font to all text elements */
[data-theme] h1, [data-theme] h2, [data-theme] h3, [data-theme] h4, [data-theme] h5, [data-theme] h6,
[data-theme] p, [data-theme] span, [data-theme] div, [data-theme] a, [data-theme] button,
[data-theme] input, [data-theme] textarea, [data-theme] select, [data-theme] label {
    font-family: var(--font-family);
}

/* Specific adjustment for Fredoka in KS2 theme - slightly increase font weight for better readability */
[data-theme="KS2"] h1, [data-theme="[KS2]"] h1,
[data-theme="KS2"] h2, [data-theme="[KS2]"] h2,
[data-theme="KS2"] h3, [data-theme="[KS2]"] h3 {
    font-weight: 600;
}

[data-theme="KS2"] .btn, [data-theme="[KS2]"] .btn {
    font-weight: 500;
}

[data-theme="KS2"] .navbar-brand h2, [data-theme="[KS2]"] .navbar-brand h2 {
    font-weight: 600;
    letter-spacing: 0.5px;
}
body {
    /*    background: rgb(218,104,30);
    background: linear-gradient(0deg, rgba(218,104,30,1) 0%, rgba(237,115,35,1) 100%);*/
    background: #ed7323;
}
h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}
.circle a {
    color: #fff !important;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.circle a:hover {
    color: #fff !important;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}
.explanationSep {
    background: #eee;
    margin-top: 20px;
    padding: 10px 0px;
    border-radius: 10px;
}
#blazor-error-ui{

    background:none !important;
}
.equations-container span {
    font-family: var(--font-family) !important;
    font-size:16px !important;
}

.equations-container p {
    font-family: var(--font-family) !important;
    font-size: 16px !important;
}
.btn-pass {
    float: right;
}

.equations-container img {
    max-width: 100%;
    height: auto;
    display: block;
}
.wrs_tickContainer {
    display: none !important
}
.wrs_editor .wrs_tickContainer{display:none!important;}
.konva-container {
    width: 100%;
    /* Optionally set a max-width or aspect ratio here */
    max-width: 800px;
    margin: 0;
}

/* Draw On Image Component Styles */
.draw-on-image {
    margin: 20px 0;
}

.btn-clear-drawing {
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(12, 87, 240, 0.2);
}

.btn-clear-drawing:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 87, 240, 0.3);
}

.btn-clear-drawing i {
    font-size: 16px;
}
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}
.link-opacity-100{
    cursor:pointer !important;
}
.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}
.scrollPanel {
    max-height: 400px; /* Maximum height for the scrollable area */
    overflow-y: auto; /* Add a vertical scrollbar if content exceeds max-height */
}



.fc-scroller {
    margin-bottom: 0px !important;
}




    /* SCROLLBAR - START - */

    /* width */
    .fc-scroller::-webkit-scrollbar {
        width: 8px !important; /* Width of the scrollbar */
    }

    /* Track */
    .fc-scroller::-webkit-scrollbar-track {
        box-shadow: inset 0 0 5px grey !important;
        border-radius: 0px !important;
    }



    /* Handle */
    .fc-scroller::-webkit-scrollbar-thumb {
        background-color: #888 !important; /* Scrollbar color */
        border-radius: 4px !important; /* Rounded corners */
    }



        /* Handle on hover */
        .fc-scroller::-webkit-scrollbar-thumb:hover {
            background-color: #555 !important; /* Color on hover */
        }




/* Firefox Integration */

.fc-scroller {
    scrollbar-color: #103E62 #fff;
}

/* SCROLLBAR - END - */


.scrollPanel::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
}

.scrollPanel::-webkit-scrollbar-thumb {
    background-color: #888; /* Scrollbar color */
    border-radius: 4px; /* Rounded corners */
}

    .scrollPanel::-webkit-scrollbar-thumb:hover {
        background-color: #555; /* Color on hover */
    }


    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* Default icon color when collapsed */
.accordion-button .icon-arrow {
    color: #fff; /* Default white */
    transition: color 0.3s ease-in-out; /* Smooth transition */
}


.accordion-button::after {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>") !important;
}


.nav-link {
    color: #ffffff;
    text-decoration-color: #ffffff; /* Make underline white */
}
.pill-count {
    background: #0c57f0 !important;
    float: right;
    font-size: 13px !important;
    font-weight: 700 !important;
    margin-left: 12px;
    margin-right: 0;
    padding: 6px 12px !important;
    min-width: 32px;
    text-align: center;
}
.horizonal-list-width {
    min-width: 20%;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-right: 2px solid #e9ecef;
    cursor: pointer;
    padding: 16px 20px !important;
    transition: all 0.3s ease;
    background: white;

}

.statistics h4 {
    font-size: 16px;
    text-align: center;
    color: #777;
    margin-top: 20px;
}

    .horizonal-list-width:hover {
        background: #f8f9fa !important;
        transform: translateY(-2px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

em.dateForDay {
    color: #777;
    font-weight: normal;
    font-style: normal;
    font-size: 14px;
}
.fade-in {
    opacity: 0; /* Initially hidden */
    transform: translateY(20px); /* Slightly moved down */
    transition: opacity 0.5s ease, transform 0.5s ease; /* Smooth transition */
}

    .fade-in.show {
        opacity: 1; /* Fully visible */
        transform: translateY(0); /* Original position */
    }
.bg-orange {
    background-color: #ef8935 !important;
    color: #fff !important;
}
.bg-green {
    background-color: #50c76f !important;
    color: #fff !important;
}
.bg-yellow {
    background-color: #fcfc4c !important;
}
.btn-secondary {
    background: #ffffff !important;
    color: #212121 !important;
    border: 2px solid #0b5ed7 !important;
}

.btn-primary:hover {
    background: #1156d1 !important;
}

.btn-secondary:hover {
    background: #1156d1 !important;
    color: #ffffff !important;
    border: 2px solid #0b5ed7 !important;
}

.btn-secondary:active,
.btn-secondary:focus,
.btn-secondary:focus-visible {
    background: #ffffff !important;
    color: #212121 !important;
    border: 2px solid #0b5ed7 !important;
}
.horizonal-list-width-active {
    background: linear-gradient(135deg, #0c57f0, #1b6ec2) !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(12, 87, 240, 0.3) !important;
    transform: translateY(-2px) !important;
}

.horizonal-list-width-active:hover {
    background: linear-gradient(135deg, #0a47d0, #1556a8) !important;
    transform: translateY(-3px) !important;
}

.horizonal-list-width-active .pill-count {
    background: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn{
    border-radius:10px !important;
}

.list-last {
    border: none !important;
}
.horizonal-list-width-not-active{
    color: #333;
    position: relative;
}

.horizonal-list-width-not-active:hover {
    color: #0c57f0 !important;
}

.horizonal-list-width-not-active:hover .pill-count {
    background: #0a47d0 !important;
    transform: scale(1.1);
}
    .nav-link:hover {
        color: #ffffff;
        font-weight: 700;
        text-decoration: underline;
        text-decoration-color: #ffffff; /* Make underline white */
    }

.horizonal-list-width{

}

.navbar-brand img {
    width: 140px !important;
    margin-left:10px;
}

/* Progress Gauge Container */
.progress-gauge-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.progress-gauge-container canvas {
    max-width: 200px;
    max-height: 200px;
    display: block;
    margin: 0 auto;
}
code {
    color: #c02d76;
}
#polarChart{
    width:400px !important;
    height:400px !important;
}
.container-bg {
    background: #eee;
    border-radius: 10px;
}
.container-fluid{
padding-left:0px;
padding-right:0px;
margin-left:10px;
margin-right:10px;
}

.ml-20{
    margin-left:20px;
}
.mr-20 {
    margin-right: 20px;
}
.active{
    font-weight:700;
    text-decoration:underline;
}
.container-lrg {
    width: 98%;
    margin: 0 auto;
    background: #eee;
}

/* Custom styles for the datepicker */
.datepicker {
    background-color: #f8f9fa; /* Light background color */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    max-width:350px;
}

    .datepicker table th,
    .datepicker table td {
        padding: 10px 15px;
        font-size: 14px;
    }
.tr td.active.active {
    background-color: #0b5ed7 !important; /* Highlight color */
}
    .datepicker .datepicker-days .active,
    .datepicker .datepicker-days .focus,
    .datepicker .datepicker-days .today {
        background-color: #0b5ed7; /* Highlight color */
        color: white; /* Text color */
    }
td.active {
    background-color: #0b5ed7 !important; /* Highlight color */
}

    .datepicker .datepicker-days .disabled {
        background-color: #f0f0f0;
        color: #d6d6d6;
    }

    /* Custom navigation buttons */
    .datepicker .datepicker-header .prev,
    .datepicker .datepicker-header .next {
        color: #0b5ed7;
        font-size: 18px;
        padding: 8px;
    }

    .datepicker .datepicker-days {
        min-width: 300px;
    }

    .datepicker table {
        width: 100%;
        table-layout: fixed;
    }

    .datepicker td a {
        color: #0b5ed7; /* Default date link color */
        font-size: 14px;
    }

.circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0c57f0, #1b6ec2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-family);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    box-shadow: 0 4px 16px rgba(12, 87, 240, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 100%);
    pointer-events: none;
}

.circle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(12, 87, 240, 0.4);
}

.circleToken {
    width: 45px; /* Adjust size as needed */
    height: 45px; /* Make height equal to width to create a circle */
    background-image: url('images/token2.png'); /* Set the background image - relative to base */
    background-size: cover; /* Ensure the image covers the circle */
    background-position: center; /* Center the background image */
    border-radius: 50%; /* Make it a circle */
    display: flex; /* Use Flexbox for centering */
    align-items: center; /* Vertically center the text */
    justify-content: center; /* Horizontally center the text */
    color: #935b12; /* Text color */
    font-size: 16px; /* Adjust font size as needed */
    text-align: center; /* Center text alignment */
    font-weight: 900; /* Bold text */
}

.circleQuestion {
    width: 30px; /* Adjust size as needed */
    height: 30px; /* Make height equal to width to create a circle */
    background-color: #0c57f0; /* Circle background color */
    border-radius: 50%; /* Make it a circle */
    display: flex; /* Use Flexbox for centering */
    align-items: center; /* Vertically center the text */
    justify-content: center; /* Horizontally center the text */
    color: white; /* Text color */
    font-size: 16px; /* Adjust font size as needed */
    text-align: center; /* Center text alignment */
    font-weight: 900;
}

/* Question Number Badge - Modern Design */
.explanationQuestion {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.explanationQuestion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
}

/* Color-specific shadows for depth */
.explanationQuestion[style*="background:#ed5656"]::after,
.explanationQuestion[style*="background: #ed5656"]::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    pointer-events: none;
}

.explanationQuestion.bg-warning::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    pointer-events: none;
}

.explanationQuestion.bg-green::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    pointer-events: none;
}

td.highlighted-answer {
    padding: 10px;
    border-radius: 10px;
    background-color: #d4edda !important; /* Green background */
    border: 1px solid #28a745 !important; /* Green border */
}
/* Explanation Text Box - Enhanced Styling */
.explanationText {
    background: #f0f7ff;
    border-left: 4px solid #0c57f0;
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.7;
}

.questionText {
    padding: 0px 10px 10px 20px;
}

.questionText p {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    margin: 0;
}

.questionText img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

table.highlighted-table {
    border: none;
    border-radius: 10px;
}
    table.highlighted-table tr {
        border: none;
        border-radius: 10px;
    }
.explanationItem {
    color: #212121;
    font-size: 14px;
    cursor: default;
}
.explanationBorder {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.explanationBorder:hover {
    border-color: #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.test-panel {
    margin: 0 auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    margin-left:30px;
    margin-bottom: 20px;
}
.explanation-panel {
    margin: 0 auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    min-height:490px;
    margin-left:50px;
    margin-right:38px;
}
.modal-dialog{
    max-width:95% !important;
}
.test-panel h3 {
    font-size: 18px;
    font-weight: 900;
}
.panel {
    width: 90%;
    margin: 0 auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}
.panel h3{
    font-size:18px;
    font-weight:700;
}

p{

}
.explanationText p{
    font-family: var(--font-family) !important;
    font-optical-sizing: auto !important;
    font-weight: 500 !important;
    font-style: normal !important;
    font-size: 18px !important;
}
.questionText p{
    font-family: var(--font-family) !important;
    font-optical-sizing: auto !important;
    font-weight: 500 !important;
    font-style: normal !important;
    font-size: 18px !important;
}

.explanationText span {
    font-family: var(--font-family) !important;
    font-optical-sizing: auto !important;
    font-weight: 500 !important;
    font-style: normal !important;
    font-size: 18px !important;
}

.questionText span{
    font-family: var(--font-family) !important;
    font-optical-sizing: auto !important;
    font-weight: 500 !important;
    font-style: normal !important;
    font-size: 18px !important;
}
.fontASize{
    font-weight:900;
    font-size:22px;
}
.fc-theme-standard td {
    height: 40px;
}
#calendar {
    max-height: 300px;
    overflow-y: auto; /* Add scroll if necessary */
}
.fc-toolbar-title{
    font-size:18px;
}
h2.fc-toolbar-title {
    font-size: 18px !important;
}
.fc-dayGridMonth-button{
    display:none;
}
.fc-button-primary {
    background: #0c57f0 !important;
    border-radius: 10px;
    border: #073077 !important;
}

    .fc-button-primary:hover {
        background: #1156d1 !important;
    }
.fc-h-event .fc-event-title{
    font-size:12px !important;
}
.fc-button {
    padding: 0.2em 0.25em;
}

/* Customize scrollbar for WebKit-based browsers (Chrome, Edge, Safari) */
#calendar::-webkit-scrollbar {
    width: 6px;
    background-color: #F5F5F5;
}

#calendar::-webkit-scrollbar-track {
    background: #f1f1f1 !important; /* Background of the scrollbar track */
    border-radius: 5px !important; /* Optional: Rounded corners */
}

#calendar::-webkit-scrollbar-thumb {
    background: #888 !important; /* Color of the scrollbar thumb */
    border-radius: 5px !important; /* Optional: Rounded corners */
}

    #calendar::-webkit-scrollbar-thumb:hover {
        background: #555 !important; /* Darker color on hover */
    }

/* Customize scrollbar for Firefox */
#calendar {
    scrollbar-width: thin !important; /* Makes the scrollbar thinner */
    scrollbar-color: #888 #f1f1f1 !important; /* Thumb and track colors */
}

    #calendar::-webkit-scrollbar-button {
        display: none !important; /* Hides the up/down or left/right arrows */
    }

    #calendar::-webkit-scrollbar {
        width: 10px !important; /* Set desired scrollbar width */
        height: 10px !important; /* Set desired scrollbar height */
    }

/* Firefox scrollbar customization */
#calendar {
    scrollbar-width: thin !important; /* Use thin scrollbars */
    scrollbar-color: #888 transparent; /* Thumb color and track color */
}

.btn-primary {
    background: #0c57f0 !important;
}

img.tokenStack {
    width: 150px;
    text-align: right;
    position: relative;
    float: right;
}
.tokenStack {
    width: 200px;
    text-align: right;
    position: relative;
    float: right;
    top: -52px;
    right: 27px;
}
p.tokenStackCount {
    position: relative;
    /* right: 200px; */
    float: right;
    top: 53px;
    font-size: 32px;
    left: 50px;
    color: #935b12;
    font-weight: bold;
}

.noBG{
    background:none !important;
    border:none !important;
}

.selectedDate {
    border: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 16px !important;
}

/* Make Flatpickr Calendar Always Visible */
.flatpickr-calendar {
    display: block !important;
    position: static !important;
    margin-top: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
    border-radius: 10px !important;
    border: 1px solid #e9ecef !important;
}

.flatpickr-calendar.open {
    display: block !important;
}

.flatpickr-months {
    background: linear-gradient(135deg, #0c57f0, #1b6ec2) !important;
    color: white !important;
    border-radius: 10px 10px 0 0 !important;
    padding: 12px !important;
}

.flatpickr-current-month {
    color: white !important;
}

.flatpickr-months .flatpickr-month {
    color: white !important;
}

.flatpickr-weekday {
    color: #666 !important;
    font-weight: 700 !important;
}

.flatpickr-day {
    border-radius: 8px !important;
    font-weight: 500 !important;
}

.flatpickr-day.selected {
    background: #0c57f0 !important;
    border-color: #0c57f0 !important;
}

.flatpickr-day:hover {
    background: #e9f2ff !important;
    border-color: #0c57f0 !important;
}

.flatpickr-day.today {
    border-color: #0c57f0 !important;
    font-weight: 700 !important;
}

.flatpickr-day.disabled {
    color: #ccc !important;
}

/* Calendar Section */
.calendar-section {
    margin-top: 20px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.selected-date-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #0c57f0, #1b6ec2);
    border-radius: 8px;
    color: white;
}

.selected-date-display i {
    font-size: 20px;
    color: white;
}

.selected-date-display .selectedDate {
    color: white !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

.calendarBtn {
    color: #0b5ed7 !important;
}

/* Blazorise Inline DatePicker Styles */
.b-datepicker-inline {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
    border-radius: 10px !important;
    border: 1px solid #e9ecef !important;
}

.b-datepicker-inline .b-datepicker-header {
    background: linear-gradient(135deg, #0c57f0, #1b6ec2) !important;
    color: white !important;
    border-radius: 10px 10px 0 0 !important;
    padding: 12px !important;
}

.b-datepicker-inline .b-datepicker-header button {
    color: white !important;
}

.b-datepicker-inline .b-datepicker-weekday {
    color: #666 !important;
    font-weight: 700 !important;
}

.b-datepicker-inline .b-datepicker-day {
    border-radius: 8px !important;
    font-weight: 500 !important;
}

.b-datepicker-inline .b-datepicker-day-selected {
    background: #0c57f0 !important;
    color: white !important;
}

.b-datepicker-inline .b-datepicker-day:hover:not(.b-datepicker-day-disabled) {
    background: #e9f2ff !important;
    color: #0c57f0 !important;
}

.b-datepicker-inline .b-datepicker-day-today {
    border: 2px solid #0c57f0 !important;
    font-weight: 700 !important;
}

.b-datepicker-inline .b-datepicker-day-disabled {
    color: #ccc !important;
}
/*.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background-color: none;
    height: 750px;*/ /* Adjust as needed */
    /*border-radius: 8px;
}*/

/* Optional: Customize navigation buttons */
/*.swiper-button-next,
.swiper-button-prev {
    color: #007bff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        color: #0056b3;
    }*/
/*.custom-swiper {
    width: 100%;
    max-width: 100%;
    min-height: 400px;
    margin: auto;
    position: relative;
    overflow: hidden;
}



.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: none;
    border-radius: 10px;
    width: 100% !important;*/ /* Ensures each slide takes full width */
/*}*/
.custom-swiper {
    width: 100%;
    max-width: 100%;
/*    min-height: 400px;*/
    margin: auto;
    position: relative;
    overflow: hidden;
}

/* Ensure the wrapper spans the full height */
.swiper-wrapper {
    height: 100%;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: none;
    border-radius: 10px;
    width: 100% !important; /* Ensures each slide takes full width */
    height: 100%; /* Make slide occupy the full height of the swiper */
    padding: 10px 0; /* Add vertical padding to prevent cutoff */
}

/* Constrain swiper height for gauge/chart displays */
.custom-swiper:has(canvas) {
    max-height: 280px;
    min-height: 240px;
}

.swiper-slide canvas {
    max-width: 160px;
    max-height: 160px;
    margin: 20px auto;
    display: block;
}

.pointer {
    cursor: pointer !important;
}

#blazor-error-ui{

    background:none !important;
}
.swiper-button-next,
.swiper-button-prev {
    position: absolute; /* Ensures buttons stay inside the Swiper container */
    top: 50%; /* Centers vertically */
    transform: translateY(-50%); /* Adjusts alignment */
    z-index: 10; /* Ensures buttons are visible */
    width: 40px; /* Adjusts button size */
    height: 40px;
    background-color:none; /* Adds semi-transparent background */
    border-radius: 50%; /* Makes buttons circular */
    color: white;
}
.swiper-horizontal > .swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction {
    bottom: var(--swiper-pagination-bottom,-4px) !important;
}
.swiper-button-next {
    right: 10px; /* Positions inside on the right */
}

.swiper-button-prev {
    left: 10px; /* Positions inside on the left */
}

.swiper-pagination {
    bottom: 10px; /* Ensures pagination stays inside */
    position: absolute;
}

.mt-10{
    margin-top:10px;
}
/* Initially hide the paragraph */
/* Initially hide the p tags */
.tokenText {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.panel-lessons {
    background: none !important;
    padding: 0;
    margin: 0;
    margin-left: 50px;
}

li.lesson-cal-nav {
    width: 10px;
    max-width: 10px;
    min-width: 60px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

li.lesson-cal-nav i {
    transition: transform 0.3s ease;
}

li.lesson-cal-nav:hover i {
    transform: scale(1.2);
}

/* Lesson Status Tabs */
.lesson-status-tabs {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.lesson-status-item {
    flex-direction: row !important;
}

.lesson-status-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lesson-status-icon {
    font-size: 16px;
    color: #666;
    transition: color 0.3s ease;
}

.horizonal-list-width-not-active:hover .lesson-status-icon {
    color: #0c57f0;
}

.horizonal-list-width-active .lesson-status-icon {
    color: white !important;
}

li.noGB{
    background:none!important;
}
/* When the "show" class is added, they fade in */
.tokenText.show {
    opacity: 1;
}
    .ml-30{
        margin-left:30px;
    }
.mr-30 {
    margin-right: 30px;
}
.bg-primary {
    border-radius: 10px;
    background: #0b5ed7 !important;
    text-align:center;

}
    .bg-primary h3 {
        font-weight: 300;
        text-align: center;
        padding-bottom: 5px;
        font-size: 16px;
    }
    .bg-primary h2 {
        font-weight: 700;
        padding-bottom: 0;
        font-size: 18px;
        margin-bottom: 0;
    }
  .mr-10{
      margin-right:10px;
  }
.question-numbers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 10px;
    padding-left: 0;
    padding-right: 0;
}

.question-number {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 100%;
    aspect-ratio: 1 / 1;
    font-size: 16px;
    background-color: #fafafa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #212121;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.multipleChoice {
    background: #e8e8e8;
    color: #777;
    border-radius: 4px;
    font-size: 12px;
}
.questionNumberWidth {
    width: 50px;
    margin: 0;
    padding: 0;
    margin-left: 10px;
    text-align: center;
}
.explanationVideoIcon {
    color: #0c57f0;
    font-size: 28px;
    padding: 0;
    margin: 0;
}

.explanationItem{
    padding-top:4px;
}
.question-number:hover {
    background-color: #e9ecef;
}

.current-question {
    background: #0b5ed7;
    color:#fff;
}

    .current-question:hover {
        background: #1156d1;
    }

    hr{
        color:#777;
    }

    .flatpickr-calendar.open{
        position: absolute !important;
        
    }

    .flatpickr-monthDropdown-months{
        font-size: 14px !important;
    }

    .flatpickr-current-month input.cur-year{
        font-size: 14px !important;
    }
    .flatpickr-current-month input.cur-month{
        font-size: 14px !important ;
    }
    .flatpickr-current-month input.cur-day{
        font-size: 14px !important;
    }
    .flatpickr-current-month input.cur-day{
        font-size: 14px !important ;
    }
    .flatpickr-current-month .flatpickr-monthDropdown-months{
        font-size: 14px !important;
    }
/* Answer List Container */
.answer-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

/* Individual Answer Item */
.answer-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef !important;
    border-radius: 10px !important;
    padding: 16px !important;
    transition: all 0.2s ease;
    position: relative;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
}

.answer-item:hover {
    border-color: #dee2e6 !important;
    background: #ffffff;
}

/* Correct answer styling */
.correct-answer {
    background-color: #d4edda !important;
    border: 2px solid #28a745 !important;
    color: #155724;
}

.correct-answer:hover {
    background-color: #c3e6cb !important;
}

/* Incorrectly selected answer */
.selected-answer {
    background-color: #f8d7da !important;
    border: 2px solid #dc3545 !important;
    color: #721c24;
}

.selected-answer:hover {
    background-color: #f5c6cb !important;
}

/* Labels for correct and incorrect answers */
.correct-label {
    font-size: 14px;
    font-weight: 300;
    color: #155724;
}

.incorrect-label {
    font-size: 14px;
    font-weight: 300;
    color: #721c24;
}

/* Answer Label Badges */
.answerLabelCorrect,
.answerLabelIncorrect {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.answerLabelCorrect {
    background: #28a745 !important;
    color: #ffffff !important;
}

.answerLabelIncorrect {
    background: #dc3545 !important;
    color: #ffffff !important;
}

.expAnswer {
    float: left;
}


/* Overlay covering the entire screen */
.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

/* The tour message box (position will be set via inline style) */
.tour-message {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    max-width: 300px;
}

/* Highlight style for nav items during the tour */
.active-tour {
    position: relative; /* z-index works when positioned */
    z-index: 2100; /* Render above the overlay */
    border: 2px solid #1b6ec2;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

/* Centered video container */
.video-container {
    position: fixed;
    top: 50%;
    left: 50%;
    width:90%;
    height:90%;
    transform: translate(-50%, -50%);
    z-index: 2001;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.full-screen-modal {
    max-width: 90vw; /* 90% of the viewport width */
    max-height: 90vh; /* 90% of the viewport height */
}

.modal-content-custom {
    height: 90vh; /* Ensure modal content is 90% of the viewport height */
    display: flex;
    flex-direction: column;
}

.video-container {
    flex: 1 1 auto;
    background: none !important;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 60px;
    margin-bottom: 60px;
    /* box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12); */
    display: flex;
}

.iframe-full-height {
    flex-grow: 1; /* Make iframe take up remaining space */
    border: none;
}
.qrImg img {
    text-align: center;
    margin: 0 auto;
}



@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
.bg-body-tertiary{
    background:none !important;
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link.show{
    color:#fff;
}
@media (min-width: 992px) {
    .navbar-expand-lg .collapse {
        display: flex;
        flex-direction: row;
    }
}


@media (max-width: 768px) {
    #datepicker-container {
        width: 100%;
        position: absolute;
        bottom: 0;
    }

    @media(max-width:576px){
        p{
            font-size:14px;
            margin-bottom:0;
        }
        span{font-size:14px;}

        .equations-container span {
            font-family: var(--font-family) !important;
            font-size: 14px !important;
        }

        .equations-container p {
            font-family: var(--font-family) !important;
            font-size: 14px !important;
        }
        .equations-container {
            font-size: 14px !important;
            font-family: var(--font-family) !important;
        }
        .statistics h4 {
            font-size: 14px;

        }
        .bg-primary h3 {
            font-weight: 300;
            font-size: 14px;
        }
        .panel{
            width:100%;
            padding:5px;
        }
        .container-lrg{
            width:100%;
        }
        .btn-primary{
            font-size:14px;
        }
        .btn-secondary{
            font-size: 14px;
        }
        td{
            font-size:14px;
        }
        .test-panel {
            margin-left:0;
        }
        .mr-30{
            margin-right:0;
        }
        .btn-warning{
            font-size:14px;
        }
        .panel-lessons{
            margin-left:0;
        }
        .btn-outline-primary{
            font-size:14px;
        }
        .questionText p {
            font-size: 14px !important;
        }
        .explanation-panel{
            margin:0 auto;
            min-height:auto;
        }
        .lesson-title h3{
            font-size:16px;
        }
        .lesson-title h2 {
            font-size: 18px;
        }
    }
}

@media print {
    body {
        display: none !important;
    }
}

/* Dashboard Color Styles - Global Override */
/* Today's Task Section */
.todays-task-card {
    background: linear-gradient(135deg, #0c57f0, #0a47d0) !important;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(12, 87, 240, 0.3);
    position: relative;
    overflow: hidden;
}

.todays-task-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.todays-task-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.todays-task-badge i {
    font-size: 12px;
}

.todays-task-btn {
    background-color: #fff !important;
    color: #0c57f0 !important;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.todays-task-btn:hover {
    background-color: #f8f9fa !important;
    color: #0c57f0 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.todays-task-btn i {
    margin-left: 6px;
}

/* Completed Today's Task */
.todays-task-card.completed {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.todays-task-card.completed:hover {
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.todays-task-card.completed .todays-task-btn {
    color: #10b981 !important;
}

/* Today's Task List (Grouped Tasks) */
.todays-task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(4px);
}

.task-item-content {
    flex: 1;
}

.task-item-title {
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.task-item-description {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 13px;
    font-weight: 400;
}

.task-item .todays-task-btn {
    padding: 8px 16px;
    font-size: 13px;
}

/* Available Lessons Section */
.lesson-card {
    background: #f8f9fa !important;
    border-left: 4px solid #0c57f0 !important;
}

.lesson-card:hover {
    background: #e9ecef !important;
}

.lesson-date {
    color: #0c57f0 !important;
}

.lesson-description {
    color: #333 !important;
}

.lesson-title {
    color: #666 !important;
}

.lesson-btn {
    background-color: #0c57f0 !important;
    color: #fff !important;
}

.lesson-btn:hover {
    background-color: #0a47d0 !important;
    color: #fff !important;
}

/* Stuck on a Question Section */
.ask-question-panel {
    background: linear-gradient(135deg, #ed7323, #ff8c42) !important;
    color: #fff !important;
}

.ask-title {
    color: #fff !important;
}

.ask-description {
    color: rgba(255, 255, 255, 0.95) !important;
}

.ask-btn {
    background-color: #fff !important;
    color: #ed7323 !important;
}

.ask-btn:hover {
    background-color: #fff !important;
    color: #ed7323 !important;
}

/* Calendar Legend Colors */
.legend-completed {
    background-color: #B1EA96 !important;
    box-shadow: 0 2px 6px rgba(177, 234, 150, 0.3) !important;
}

.legend-incomplete {
    background-color: #FFAC90 !important;
    box-shadow: 0 2px 6px rgba(255, 172, 144, 0.3) !important;
}

.legend-today {
    background-color: #ADD8E6 !important;
    box-shadow: 0 2px 6px rgba(173, 216, 230, 0.3) !important;
}

/* Calendar Legend Styles */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

.legend-text {
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

/* Condensed Calendar */
.calendar-compact {
    position: sticky;
    top: 20px;
    z-index: 10;
}

.calendar-compact #calendar {
    max-height: 450px;
    min-height: 400px;
}

.calendar-compact .fc-toolbar {
    font-size: 15px !important;
    padding: 10px 0 !important;
    background: white;
    border-radius: 8px 8px 0 0;
    margin-bottom: 8px;
}

.calendar-compact .fc-toolbar-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #333 !important;
}

.calendar-compact .fc-button {
    padding: 6px 12px !important;
    font-size: 13px !important;
}

.calendar-compact .fc-daygrid-day-number {
    font-size: 14px !important;
    font-weight: 600 !important;
}

.calendar-compact .fc-daygrid-day {
    min-height: 50px !important;
    cursor: pointer;
}

.calendar-compact .fc-col-header-cell {
    padding: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.calendar-compact .fc-daygrid-event {
    font-size: 12px !important;
    padding: 2px 4px !important;
    border-radius: 4px !important;
}

/* ===== TAKE LESSON PAGE STYLES ===== */

/* Lesson Navigation Header */
.lesson-info-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    padding-right: 20px;
}

.day-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0c57f0, #1b6ec2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(12, 87, 240, 0.3);
}

.day-badge i {
    font-size: 14px;
}

.lesson-title-nav {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

/* Quiz Panel */
.quiz-panel {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    margin-top: 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    min-height: 600px;
}

.question-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.question-number-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.question-label {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.question-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.question-text-container {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #0c57f0;
}

.question-image-container {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}

/* Answer Section */
.answer-section {
    margin-top: 24px;
}

.answer-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.answer-section-title i {
    color: #0c57f0;
    font-size: 18px;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.answer-option {
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.answer-option:hover {
    border-color: #0c57f0;
    background: #f8f9fa;
    transform: translateX(4px);
}

.answer-option.answer-selected {
    background: linear-gradient(135deg, rgba(12, 87, 240, 0.08), rgba(27, 110, 194, 0.08));
    border-color: #0c57f0;
    box-shadow: 0 2px 8px rgba(12, 87, 240, 0.15);
}

.answer-option .form-check-input {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    border: 2px solid #0c57f0;
    cursor: pointer;
    flex-shrink: 0;
}

.answer-option .form-check-input:checked {
    background-color: #0c57f0;
    border-color: #0c57f0;
}

.answer-label {
    flex: 1;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #e9ecef;
}

.btn-action {
    padding: 12px 24px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-action i {
    font-size: 16px;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Sidebar Panels */
.sidebar-panel {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    margin-top: 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.panel-icon {
    color: #0c57f0;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}

.video-panel .video-wrapper {
    border-radius: 10px;
    overflow: hidden;
}

/* Navigation Panel */
.navigation-panel {
    max-height: 500px;
}

.navigation-legend {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 2px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.navigation-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navigation-legend .legend-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
}

.navigation-legend .legend-text {
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

/* Completion Panel */
.completion-panel {
    background: #fff;
    border-radius: 10px;
    padding: 60px 40px;
    margin: 40px auto;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.completion-icon {
    font-size: 80px;
    color: #28a745;
    margin-bottom: 24px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.completion-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.completion-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
    line-height: 1.6;
}

.completion-panel .btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Loading States */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 300px;
}

.spinner-primary {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
    border-color: #0c57f0;
    border-right-color: transparent;
}

.loading-text {
    margin-top: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

/* Dashboard Panel Styles */
.dashboard-panel {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.dashboard-panel:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.panel-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 16px;
}

.empty-state-text {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.lessons-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lesson-card {
    background: #f8f9fa;
    border-left: 4px solid #0c57f0;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    gap: 16px;
    align-items: center;
}

.lesson-card:hover {
    background: #e9ecef;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lesson-icon-wrapper {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0c57f0, #1b6ec2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lesson-type-icon {
    color: #fff;
    font-size: 20px;
}

.lesson-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lesson-date {
    font-size: 13px;
    font-weight: 600;
    color: #0c57f0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lesson-date i {
    font-size: 12px;
}

.lesson-description {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.lesson-title {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.lesson-btn {
    background-color: #0c57f0;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.lesson-btn:hover {
    background-color: #0a47d0;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 87, 240, 0.3);
}

/* Responsive Design */
@media (max-width: 991px) {
    .lesson-info-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-left: 0;
        padding-right: 0;
        padding-top: 12px;
    }

    .lesson-title-nav {
        font-size: 18px;
    }

    .quiz-panel {
        padding: 20px;
    }

    .sidebar-panel {
        margin-top: 0;
        padding: 20px;
    }

    .action-buttons {
        flex-direction: column;
    }

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

@media (max-width: 576px) {
    .lesson-title-nav {
        font-size: 16px;
    }

    .day-badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .quiz-panel {
        padding: 16px;
    }

    .question-text-container {
        padding: 16px;
    }

    .answer-option {
        padding: 12px;
    }

    .sidebar-panel {
        padding: 16px;
    }

    .completion-panel {
        padding: 40px 20px;
    }

    .completion-title {
        font-size: 24px;
    }

    .completion-icon {
        font-size: 60px;
    }

    .container-lrg {
        padding: 10px !important;
    }
}

/* ===================================
   Page Header Styles (Global)
   =================================== */

.page-header {
    background: linear-gradient(135deg, #0c57f0, #1b6ec2);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(12, 87, 240, 0.3);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.page-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-family);
}

.page-icon {
    font-size: 26px;
    color: rgba(255, 255, 255, 0.95);
}

.page-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 4px 0 0 0;
    font-weight: 400;
}

/* Summary Styles - Generic for all pages */
.history-summary,
.dashboard-summary,
.overview-summary,
.ask-summary,
.courses-summary,
.education-summary {
    display: flex;
    gap: 16px;
}

.history-summary .summary-item,
.dashboard-summary .summary-item,
.overview-summary .summary-item,
.ask-summary .summary-item,
.courses-summary .summary-item,
.education-summary .summary-item {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 16px;
    text-align: center;
    min-width: 100px;
}

.history-summary .summary-number,
.dashboard-summary .summary-number,
.overview-summary .summary-number,
.ask-summary .summary-number,
.courses-summary .summary-number,
.education-summary .summary-number {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 4px;
}

.history-summary .summary-label,
.dashboard-summary .summary-label,
.overview-summary .summary-label,
.ask-summary .summary-label,
.courses-summary .summary-label,
.education-summary .summary-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Page Header */
@media (max-width: 991px) {
    .page-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-title {
        font-size: 22px;
    }

    .page-icon {
        font-size: 24px;
    }

    .history-summary,
    .dashboard-summary,
    .overview-summary,
    .ask-summary,
    .courses-summary,
    .education-summary {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .page-header {
        padding: 14px 16px;
    }

    .page-title {
        font-size: 20px;
    }

    .page-icon {
        font-size: 22px;
    }

    .page-description {
        font-size: 13px;
    }

    .history-summary,
    .dashboard-summary,
    .overview-summary,
    .ask-summary,
    .courses-summary,
    .education-summary {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .history-summary .summary-item,
    .dashboard-summary .summary-item,
    .overview-summary .summary-item,
    .ask-summary .summary-item,
    .courses-summary .summary-item,
    .education-summary .summary-item {
        width: 100%;
        padding: 8px 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .history-summary .summary-number,
    .dashboard-summary .summary-number,
    .overview-summary .summary-number,
    .ask-summary .summary-number,
    .courses-summary .summary-number,
    .education-summary .summary-number {
        font-size: 20px;
    }

    .history-summary .summary-label,
    .dashboard-summary .summary-label,
    .overview-summary .summary-label,
    .ask-summary .summary-label,
    .courses-summary .summary-label,
    .education-summary .summary-label {
        font-size: 11px;
    }
}

/* Confirmation Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.confirmation-modal {
    background: #ffffff;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.confirmation-header {
    background: linear-gradient(135deg, #0c57f0, #1b6ec2);
    color: #ffffff;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.confirmation-header i {
    font-size: 28px;
}

.confirmation-header h4 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.confirmation-body {
    padding: 30px;
}

.confirmation-question {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.selected-delivery-preview {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border: 2px solid #e9ecef;
}

.preview-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0c57f0, #1b6ec2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
}

.preview-details {
    flex: 1;
}

.preview-details h5 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.preview-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.preview-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-meta i {
    color: #0c57f0;
}

/* Date Picker Section Styles */
.date-picker-section {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin-top: 8px;
}

.date-picker-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.date-picker-label i {
    color: #0c57f0;
    font-size: 20px;
}

.calendar-picker-container {
    margin-bottom: 16px;
}

.calendar-picker-container .b-is-datepicker input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    background: #ffffff;
    transition: all 0.2s ease;
}

.calendar-picker-container .b-is-datepicker input:focus {
    outline: none;
    border-color: #0c57f0;
    box-shadow: 0 0 0 3px rgba(12, 87, 240, 0.1);
}

.calendar-picker-container .b-is-datepicker input::placeholder {
    color: #adb5bd;
}

.selected-date-display {
    background: #e7f3ff;
    border: 2px solid #0c57f0;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #0c57f0;
    font-weight: 600;
    margin-top: 12px;
}

.selected-date-display i {
    font-size: 18px;
}

.selected-date-display strong {
    color: #0c57f0;
    font-weight: 700;
}

/* Confirmation Actions */
.confirmation-actions {
    padding: 20px 30px;
    background: #f8f9fa;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #e9ecef;
}

.confirmation-actions .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-cancel {
    background: #6c757d;
    color: #ffffff;
}

.btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-confirm {
    background: linear-gradient(135deg, #0c57f0, #1b6ec2);
    color: #ffffff;
}

.btn-confirm:hover:not(:disabled) {
    background: linear-gradient(135deg, #0a4acc, #155a9e);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(12, 87, 240, 0.4);
}

.btn-confirm:disabled {
    background: #dee2e6;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Responsive Styles for Modal */
@media (max-width: 767px) {
    .confirmation-modal {
        max-width: 100%;
        margin: 0 12px;
    }

    .confirmation-header {
        padding: 20px;
    }

    .confirmation-header h4 {
        font-size: 18px;
    }

    .confirmation-body {
        padding: 20px;
    }

    .selected-delivery-preview {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .preview-details h5 {
        font-size: 16px;
    }

    .date-picker-section {
        padding: 16px;
    }

    .confirmation-actions {
        flex-direction: column;
        padding: 16px 20px;
    }

    .confirmation-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Delivery Selection Card Styles */
.delivery-selection-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
}

.delivery-selection-header {
    text-align: center;
    margin-bottom: 24px;
}

.delivery-selection-header i {
    font-size: 42px;
    color: #0c57f0;
    margin-bottom: 12px;
}

.delivery-selection-header h4 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

.delivery-selection-header p {
    margin: 0;
    font-size: 15px;
    color: #666;
}

.selection-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0c57f0, #1b6ec2);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(12, 87, 240, 0.3);
}

.selection-counter i {
    font-size: 16px;
}

.selection-counter strong {
    font-size: 18px;
    font-weight: 700;
}

.delivery-selection-prompt {
    text-align: center;
    padding: 40px 20px;
}

.btn-show-deliveries {
    background: linear-gradient(135deg, #0c57f0, #1b6ec2);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.btn-show-deliveries:hover {
    background: linear-gradient(135deg, #0a4acc, #155a9e);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 87, 240, 0.4);
}

.delivery-search-box {
    position: relative;
    margin-bottom: 16px;
}

.delivery-search-field {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
}

.delivery-search-input {
    width: 100%;
    height: 100%;
    padding: 0 44px 0 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.delivery-search-input:focus {
    outline: none;
    border-color: #0c57f0;
    box-shadow: 0 0 0 3px rgba(12, 87, 240, 0.1);
}

.delivery-search-icon {
    position: absolute;
    right: 16px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    color: #adb5bd;
    font-size: 16px;
    pointer-events: none;
}

.delivery-count {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    font-weight: 500;
}

.count-breakdown {
    color: #0c57f0;
    font-weight: 600;
}

.delivery-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 4px;
}

.delivery-options-list::-webkit-scrollbar {
    width: 8px;
}

.delivery-options-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.delivery-options-list::-webkit-scrollbar-thumb {
    background: #0c57f0;
    border-radius: 4px;
}

.delivery-options-list::-webkit-scrollbar-thumb:hover {
    background: #0a4acc;
}

.delivery-option-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.delivery-option-card:not(.already-set):hover {
    border-color: #0c57f0;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.delivery-option-card.already-set {
    background: #e9ecef;
    opacity: 0.7;
}

.delivery-option-content {
    display: flex;
    gap: 16px;
    flex: 1;
    align-items: center;
}

.delivery-option-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0c57f0, #1b6ec2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
}

.delivery-option-icon.already-set-icon {
    background: linear-gradient(135deg, #28a745, #20843a);
}

.delivery-option-details {
    flex: 1;
}

.delivery-option-details h5 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.delivery-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #666;
}

.delivery-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.delivery-meta i {
    color: #0c57f0;
}

.already-set-badge {
    background: #d4edda;
    color: #155724;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-select-delivery {
    background: linear-gradient(135deg, #0c57f0, #1b6ec2);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-select-delivery:hover {
    background: linear-gradient(135deg, #0a4acc, #155a9e);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(12, 87, 240, 0.4);
}

.delivery-completion-card {
    background: linear-gradient(135deg, #28a745, #20843a);
    color: #ffffff;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
}

.delivery-completion-header i {
    font-size: 64px;
    margin-bottom: 16px;
}

.delivery-completion-header h4 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
}

.delivery-completion-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.completion-message {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.completion-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.completion-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
}

/* Loading States for Delivery Selection */
.loading-compact {
    min-height: 200px;
}

.spinner-small {
    width: 2rem;
    height: 2rem;
    border-width: 0.25rem;
}

/* Responsive Styles for Delivery Selection */
@media (max-width: 767px) {
    .delivery-selection-header h4 {
        font-size: 20px;
    }

    .delivery-option-card {
        flex-direction: column;
        text-align: center;
    }

    .delivery-option-content {
        flex-direction: column;
        text-align: center;
    }

    .btn-select-delivery {
        width: 100%;
        justify-content: center;
    }
}

/* Section Divider - Clear Question Separator */
.section-divider {
    border: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent, #0c57f0, transparent);
    margin: 48px 0 36px 0;
    position: relative;
    opacity: 0.7;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(12, 87, 240, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.section-divider::after {
    content: '• • •';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 0 20px;
    color: #0c57f0;
    font-size: 20px;
    letter-spacing: 12px;
    font-weight: 700;
}

.question-footer {
    text-align: center;
    margin-top: 24px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(12, 87, 240, 0.05), rgba(237, 115, 35, 0.05));
    border-radius: 8px;
    border: 1px solid rgba(12, 87, 240, 0.1);
}

.question-footer p {
    font-size: 11px;
    color: #666;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Alternative styles for different contexts */
.section-divider.bold {
    height: 4px;
    background: linear-gradient(90deg, transparent, #ed7323, transparent);
    margin: 40px 0;
}

.section-divider.dashed {
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        #0c57f0,
        #0c57f0 10px,
        transparent 10px,
        transparent 20px
    );
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .section-divider {
        margin: 36px 0 24px 0;
        height: 4px;
    }
    
    .section-divider::after {
        font-size: 16px;
        padding: 0 16px;
        letter-spacing: 8px;
    }
    
    .section-divider::before {
        width: 80px;
        height: 80px;
    }
    
    .question-footer {
        padding: 12px;
    }
    
    .question-footer p {
        font-size: 10px;
    }
}

/* KS2 Theme Font Weight Override - Change all bold (700) to semi-bold (600) */
/* This targets all elements that would typically have font-weight: 700 */
[data-theme="KS2"] .navbar-brand h2,
[data-theme="[KS2]"] .navbar-brand h2,
[data-theme="KS2"] .page-title,
[data-theme="[KS2]"] .page-title,
[data-theme="KS2"] .lesson-title,
[data-theme="[KS2]"] .lesson-title,
[data-theme="KS2"] .panel-title,
[data-theme="[KS2]"] .panel-title,
[data-theme="KS2"] .question-number,
[data-theme="[KS2]"] .question-number,
[data-theme="KS2"] .nav-link,
[data-theme="[KS2]"] .nav-link,
[data-theme="KS2"] .summary-number,
[data-theme="[KS2]"] .summary-number,
[data-theme="KS2"] .delivery-option-details h5,
[data-theme="[KS2]"] .delivery-option-details h5,
[data-theme="KS2"] .confirmation-header h4,
[data-theme="[KS2]"] .confirmation-header h4,
[data-theme="KS2"] .selected-date-display strong,
[data-theme="[KS2]"] .selected-date-display strong,
[data-theme="KS2"] .lesson-content-main h2,
[data-theme="[KS2]"] .lesson-content-main h2,
[data-theme="KS2"] .lesson-breakdown-header,
[data-theme="[KS2]"] .lesson-breakdown-header,
[data-theme="KS2"] .topic-item-title,
[data-theme="[KS2]"] .topic-item-title,
[data-theme="KS2"] .quiz-card-title,
[data-theme="[KS2]"] .quiz-card-title,
[data-theme="KS2"] .answer-section-title,
[data-theme="[KS2]"] .answer-section-title,
[data-theme="KS2"] .question-header .question-label,
[data-theme="[KS2]"] .question-header .question-label,
[data-theme="KS2"] .bank-question-title,
[data-theme="[KS2]"] .bank-question-title,
[data-theme="KS2"] .bank-filter-header,
[data-theme="[KS2]"] .bank-filter-header,
[data-theme="KS2"] .exam-header h1,
[data-theme="[KS2]"] .exam-header h1,
[data-theme="KS2"] .course-card-title,
[data-theme="[KS2]"] .course-card-title,
[data-theme="KS2"] .profile-section-title,
[data-theme="[KS2]"] .profile-section-title,
[data-theme="KS2"] .token-balance,
[data-theme="[KS2]"] .token-balance,
[data-theme="KS2"] strong,
[data-theme="[KS2]"] strong,
[data-theme="KS2"] b,
[data-theme="[KS2]"] b {
    font-weight: 600 !important;
}
/* ============================================================================
   QUIZ INTERACTIVE COMPONENTS STYLES
   ============================================================================ */

/* Drag and Drop Styles */
.draggable-word {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0c57f0;
    color: white;
    border-radius: 8px;
    cursor: grab;
    user-select: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin: 4px;
}

.draggable-word:hover {
    background-color: #0a4ac7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(12, 87, 240, 0.25);
}

.draggable-word:active,
.draggable-word.dragging {
    cursor: grabbing;
    opacity: 0.7;
}

.drop-box {
    min-width: 150px;
    min-height: 100px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 16px;
    background-color: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin: 8px;
}

.drop-box:hover {
    border-color: #0c57f0;
    background-color: #f0f7ff;
}

.drop-box.drag-over {
    border-color: #0c57f0;
    background-color: #e8f2ff;
    border-style: solid;
    box-shadow: 0 0 0 3px rgba(12, 87, 240, 0.1);
}

/* Click and Match Styles */
.clickCol1 {
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 8px 0;
    user-select: none;
}

.clickCol1:hover {
    border-color: #0c57f0;
    background-color: #f0f7ff;
    transform: translateX(4px);
}

.clickCol1.selected {
    border-color: #0c57f0;
    background-color: #e8f2ff;
    box-shadow: 0 0 0 3px rgba(12, 87, 240, 0.15);
    font-weight: 600;
}

.clickCol1.target {
    cursor: default;
}

.target-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Match Remove Button */
.match-remove-btn {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    transition: all 0.2s ease;
    z-index: 9999;
}

.match-remove-btn:hover {
    background-color: #bb2d3b;
    transform: scale(1.1);
}

.match-remove-btn i {
    font-size: 14px;
}

/* Select/Dropdown Styles */
select.dropdown1 {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

select.dropdown1:hover {
    border-color: #0c57f0;
}

select.dropdown1:focus {
    border-color: #0c57f0;
    box-shadow: 0 0 0 0.25rem rgba(12, 87, 240, 0.15);
    outline: none;
}

/* Drawing Canvas Styles */
.konva-container {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.drawing-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.drawing-controls button {
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drawing-controls button:hover {
    border-color: #0c57f0;
    background-color: #f0f7ff;
}

.drawing-controls button.active {
    border-color: #0c57f0;
    background-color: #e8f2ff;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .draggable-word {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .drop-box {
        min-width: 120px;
        min-height: 80px;
        padding: 12px;
    }

    .clickCol1 {
        padding: 10px 14px;
    }

    .match-remove-btn {
        width: 26px;
        height: 26px;
    }
}
