:root {
    /* Font Sizes */
    --font-size-12: 12px;
    --font-size-13: 13px;
    --font-size-14: 14px;
    --font-size-15: 15px;
    --font-size-16: 16px;
    --font-size-17: 17px;
    --font-size-18: 18px;
    --font-size-20: 20px;
    --font-size-24: 24px;
}

/* Light Theme */
[data-custom-theme="light"] {
    /* Theme Colors */
    --dark-theme: #21409B;
    --light-theme: #E3E6FA;
    --highlight-theme: #3E63C4;
    --sub-topic-color: #4B66A6;
    --main-text-color: #4E5566;
    --sub-text-color: #8C94A3;
    --dark-color: #1D2026;
    --line-color: #E9EAF0;
    --table-header-color: #F9FAFB;
    --main-button-hover: #4867C7;
    --side-menu-user-background: #F8F9FA;
    --white: #ffffff;
    --custom-white: #ffffff;
    --body-color: #F7F7F7;

    --gradient-start: #274BB3;
    --gradient-mid: #3A4D7A;
    --gradient-end: #2C3E70;

    /* Chart data view */
    --chart-red: #48CD50;
    --chart-green: #FF0000;
    --chart-color-1: #0061D2;
    --chart-color-2: #04BFDA;
    --chart-color-3: #6F9ACD;
    --chart-color-4: #B4E7EF;

    /* Fix Colours */

    --light-red: #FFEBEB;
    --light-red2: #fdf2f2;
    --dark-red: #D85E44;
    --dark-green: #48CD5D;
    --light-green: #E9F6EB;
    --dark-purple: #AF52DE;
    --light-purple: #EFDEF7;
    --light-pink: #ffdaed;
    --dark-pink: #fd53bc;
    --light-orange: #FBEBDB;
    --dark-orange: #FF9500;
    --light-yellow: #fcfdb3;
    --dark-yellow: #e0d317;
    --green-button-hover: #60e073;
    --red-button-hover: #d47b67;
    --dark-yellow-green: #86cf08;
    --light-yellow-green: #f0fdda;
    --dark-green-blue: #09bd6c;
    --light-green-blue: #e0faef;
    --dark-purple-pink: #e807c6;
    --light-purple-pink: #fdd7fd;
    --dark-pink-red: #c70a59;
    --light-pink-red: #fddbe4;
    --toast-type: #000000;

    /* Footer Logo */
    --enviiz-logo: url('../imgs/enviiz-theme.webp');
    --institute-logo: url('../imgs/institute-logo.png');

}

/* Dark Theme */
[data-custom-theme="dark"] {
    /* Theme Colors */
    --dark-theme: #21409B;
    --light-theme: #3c4e7a73;
    --highlight-theme: #5C7EFF;
    --sub-topic-color: #7A8CC7;
    --main-text-color: #E0E4EB;
    --sub-text-color: #A8B2C1;
    --dark-color: #F0F3F9;
    --line-color: #3A4556;
    --main-button-hover: #6D8FFF;
    --table-header-color: #252D38;
    --side-menu-user-background: #2F3C52;
    --white: #212529;
    --custom-white: #202938;
    --body-color: #0C1624;

    --gradient-start: #274BB3;
    --gradient-mid: #3A4D7A;
    --gradient-end: #2C3E70;

    /* Chart data view */
    --chart-red: #FF6B6B;
    --chart-green: #6BFF6B;
    --chart-color-1: #5D9EFF;
    --chart-color-2: #4ECCE6;
    --chart-color-3: #8FB9FF;
    --chart-color-4: #B4E7EF;

    /* Fix Colours */
    --light-red: #4A2A2A;
    --light-red2: #3D2727;
    --dark-red: #FF8A71;
    --dark-green: #6AE07C;
    --light-green: #2A3A2E;
    --dark-purple: #C97AF5;
    --light-purple: #3A2A44;
    --light-pink: #4A2A3D;
    --dark-pink: #FF7AD4;
    --light-orange: #4A3A2A;
    --dark-orange: #FFB054;
    --light-yellow: #4A4A2A;
    --dark-yellow: #F5E767;
    --green-button-hover: #8AFF9D;
    --red-button-hover: #FF9D8A;
    --dark-yellow-green: #A6F537;
    --light-yellow-green: #3A4A2A;
    --dark-green-blue: #4AE79A;
    --light-green-blue: #2A4A3A;
    --dark-purple-pink: #FF4AE7;
    --light-purple-pink: #4A2A4A;
    --dark-pink-red: #FF4A8A;
    --light-pink-red: #4A2A35;

    --toast-type: #ffffff;
    /* Always pure white in both themes */

    /* Footer Logo */
    --enviiz-logo: url('../imgs/enviiz-white.webp');
    --institute-logo: url('../imgs/institute-logo.png');
}

/* Base transitions */
html {
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

/* Active theme indicator */
.active-theme {
    background-color: var(--light-theme);
    color: var(--main-text-color);
}

[data-custom-theme="dark"] .active-theme {
    background-color: var(--light-theme);
    color: var(--main-text-color);
}

.component-theme {
    background-color: var(--custom-white) !important;
}

.bg-linear-gradient {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-mid), var(--gradient-end)) !important;
}


.enviiz-logo {
    content: var(--enviiz-logo) !important;
}

.institute-logo {
    max-width: 140px !important;
    height: auto !important;
    content: var(--institute-logo) !important;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--body-color);
}

.dark-theme {
    color: var(--dark-theme) !important;
}

.bg-dark-theme {
    background-color: var(--dark-theme);
}

.lightBlue {
    color: var(--light-theme) !important;
}

.bg-light-theme {
    background-color: var(--light-theme) !important;
}

.highlight-theme {
    color: var(--highlight-theme) !important;
}

.bg-highlight-theme {
    background-color: var(--highlight-theme) !important;
}

.bg-content-body {
    background-color: var(--body-color) !important;
}

.bg-dark-red {
    background-color: var(--dark-red) !important;
}

.sub-topic-color {
    color: var(--sub-topic-color) !important;
}

.main-text {
    color: var(--main-text-color) !important;
}

.sub-text-color {
    color: var(--sub-text-color) !important;
}

.dark-color {
    color: var(--dark-color) !important;
}

.text-dark-green {
    color: var(--dark-green) !important;
}

.bg-light-green {
    background-color: var(--light-green) !important;
}

.bg-light-yellow {
    background-color: var(--light-yellow) !important;
}


.text-dark-red {
    color: var(--dark-red) !important;
}

.text-dark-purple {
    color: var(--dark-purple) !important;
}

.text-dark-pink {
    color: var(--dark-pink) !important;
}

.text-dark-orange {
    color: var(--dark-orange) !important;
}

.text-dark-yellow {
    color: var(--dark-yellow) !important;
}


.sub-topic {
    color: var(--sub-topic-color) !important;
    font-size: var(--font-size-18) !important;
    font-weight: 500 !important;
}

.main-topic {
    color: var(--dark-color) !important;
    font-size: var(--font-size-18) !important;
    font-weight: 600 !important;
}

.bg-light-red {
    background-color: var(--light-red) !important;
}

.bg-light-red2 {
    background-color: var(--light-red2) !important;
}

.bg-table-header {
    background-color: var(--table-header-colour) !important;
}

.bg-light-purple {
    background-color: var(--light-purple) !important;
}

.bg-light-pink {
    background-color: var(--light-pink) !important;
}

.bg-light-orange {
    background-color: var(--light-orange) !important;
}


.text-12 {
    font-size: var(--font-size-12);
}

.text-14 {
    font-size: var(--font-size-14);
}

.text-16 {
    font-size: var(--font-size-16);
}

.text-15 {
    font-size: var(--font-size-15);
}

.text-18 {
    font-size: var(--font-size-18);
}

.text-24 {
    font-size: var(--font-size-24);
}

.text-justify {
    text-align: justify !important;
}

.h-20 {
    height: 20px;
}

.h-48 {
    height: 48px;
}

.w-20 {
    width: 20px;
}

.min-h {
    min-height: 100vh;
}

.hw-40 {
    height: 40px !important;
    width: 40px !important;
}


.hwr-40 {
    height: 40px !important;
    width: 40px !important;
    border-radius: 50% !important;
}

.hwr-50 {
    height: 50px !important;
    width: 50px !important;
    border-radius: 50% !important;
}

.hwr-70 {
    height: 70px !important;
    width: 70px !important;
    border-radius: 50% !important;
}

.hwr-35 {
    height: 35px !important;
    width: 35px !important;
    border-radius: 50% !important;
}

.custom-gap {
    gap: 25px;
}

.custom-btn {
    background-color: var(--dark-theme);
    color: white;
    font-size: var(--font-size-17);
    height: 48px;
    border-radius: 0px;
    cursor: pointer;
    outline: none;
    border: none;
    cursor: pointer;
}

.custom-btn:hover {
    background-color: var(--main-button-hover);
}

.custom-outline-btn {
    background-color: white;
    color: var(--dark-theme);
    font-size: var(--font-size-16);
    height: 48px;
    border-radius: 0px;
    cursor: pointer;
    outline: none;
    border: solid 1px var(--dark-theme);
    cursor: pointer;
}

.btn-text {
    font-size: var(--font-size-16);
    font-weight: 500;
}

.sub-btn-text {
    font-size: var(--font-size-14);
    font-weight: 500;
}

.custom-div {
    height: 48px !important;
    background-color: var(--light-theme) !important;
    border: solid 1px var(--line-color) !important;
}

.custom-round-div {
    height: 35px !important;
    width: 35px !important;
    min-width: 35px !important;
    min-height: 35px !important;
    border-radius: 50% !important;
    border: solid 1px var(--sub-text-color);
    color: var(--sub-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.quiz-correct {
    height: 35px !important;
    width: 35px !important;
    background-color: var(--dark-green);
    border-radius: 50% !important;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-wrong {
    height: 35px !important;
    width: 35px !important;
    background-color: var(--dark-red);
    border-radius: 50% !important;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-indicator-not-selected {
    height: 35px !important;
    width: 35px !important;
    border-radius: 50% !important;
    border: solid 1px var(--dark-green);
    color: var(--dark-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-round-div:hover {
    cursor: pointer;
    background-color: var(--light-theme);
    color: var(--dark-theme);
    border: solid 1px var(--dark-theme);
}

.custom-round-div:focus {
    background-color: var(--dark-theme);
    color: white;
}

.px-4 py-3 {
    padding-top: 13px !important;
    padding-bottom: 13px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

.p-20 {
    padding-top: 20px;
    padding-bottom: 20px;
}

.br-0 {
    border-radius: 0px !important;
}

.br-5 {
    border-radius: 5px;
}

.br-8 {
    border-radius: 8px !important;
}

.br-b-5 {
    border-bottom-left-radius: 5px !important;
    border-bottom-right-radius: 5px !important;
}

.br-t-5 {
    border-top-left-radius: 5px !important;
    border-top-right-radius: 5px !important;
}

.bl-solid {
    border: 1px solid var(--line-color);
}

.bl-solid-lrb {
    border-left: 1px solid var(--line-color) !important;
    border-right: 1px solid var(--line-color) !important;
    border-bottom: 1px solid var(--line-color) !important;
}

.bl-solid-trb {
    border-top: 1px solid var(--line-color) !important;
    border-right: 1px solid var(--line-color) !important;
    border-bottom: 1px solid var(--line-color) !important;
}

.bl-solid-rb {
    border-right: 1px solid var(--line-color) !important;
    border-bottom: 1px solid var(--line-color) !important;
}

.nav-left-b {
    border-left: 3px solid var(--dark-theme) !important;
    background-color: var(--light-theme) !important;
}

.mb-10 {
    margin-bottom: 10px;
}

.cursor-pointer:hover {
    cursor: pointer !important;
}

.custom-padding {
    padding: 25px 25px 25px 25px;
}

input {
    height: 48px;
    border-radius: 0%;
    border-color: var(--line-color);
    color: var(--line-color);
    width: 100%;
}

.custom-input {
    border: solid 1px var(--line-color) !important;
    outline: none !important;
    color: var(--sub-text-color) !important;
    border-radius: 0px !important;
    box-shadow: none !important;
}

.custom-input:focus {
    box-shadow: 0 0 0 0.25rem var(--light-theme) !important;
    border: solid 1px var(--dark-theme) !important;
}

.custom-input.is-invalid {
    border: solid 1px var(--dark-red) !important;
    background-image: none;
}

.custom-input.is-invalid:focus {
    border: solid 0.5px var(--dark-red) !important;
    box-shadow: 0 0 0 0.25rem var(--light-red) !important;
}

.custom-select {
    border: solid 1px var(--line-color) !important;
    outline: none !important;
    border-radius: 0px !important;
    color: var(--sub-text-color) !important;
    height: 48px;
    box-shadow: none !important;
}

.custom-select:focus {
    box-shadow: 0 0 0 0.25rem var(--light-theme) !important;
    border: solid 1px var(--dark-theme) !important;
}

.custom-select.is-invalid {
    border: solid 1px var(--dark-red) !important;
}

.custom-select.is-invalid:focus {
    border: solid 1px var(--dark-red) !important;
    box-shadow: 0 0 0 0.25rem var(--light-red) !important;
}

.password-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: auto;
}

.password-toggle {
    position: absolute;
    z-index: 1;
    cursor: pointer;
    color: var(--sub-text-color);
    padding-right: 0.5rem;
}

.password-toggle.is-invalid {
    padding-right: 2rem;
}

.menuItem:hover {
    background-color: var(--light-theme);
    cursor: pointer;
}

.nav-icon,
.nav-text {
    color: var(--main-text-color) !important;
}

.menuItem:hover .nav-icon,
.menuItem:hover .nav-text {
    color: var(--dark-theme) !important;
}


.menuItemSelected iconify-icon,
.dashboardCard iconify-icon,
.menuItemSelected span {
    color: var(--dark-theme);
}

.contentArea {
    background-color: var(--body-color);
    min-height: 100vh;
}


.notification-count {
    position: absolute;
    height: 20px;
    width: 20px;
    top: -10px;
    right: 10px;
    background-color: var(--dark-theme);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chart-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    z-index: 2;
}

.chart-legend {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chart-legend li {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    list-style: none;
    margin-bottom: 18px;
}

.legend-item {
    display: flex;
    /* Flexbox to align horizontally */
    align-items: center;
    justify-content: center;
    /* Vertical centering */
    margin-bottom: 5px;
}

.legend-color {
    width: 20px;
    height: 20px;
    background-color: #D3D3D3;
    margin-right: 8px;
    /* Space between square and text */
    border-radius: 4px;
}

::-webkit-scrollbar {
    display: none;
}

.sideMenuArea,
.contentBodyArea {
    overflow-y: auto !important;
    position: relative;

}

.sideMenuArea,
.contentBodyArea {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
}

.skillFlexContainer {
    flex-wrap: wrap;
    /* Allow wrapping */
    justify-content: center;
    /* Center items horizontally */
}

.skill {
    flex: 0 0 48%;
}

.payment-slip {
    width: 100px !important;
    height: 60px !important;
}

#chart-container {
    width: 300px;
    margin: 0 auto;
}

.legend {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.legend div {
    width: 50%;
}

.legend .unique {
    color: green;
    text-align: left;
}

.legend .plagiarised {
    color: red;
    text-align: right;
}

.unique {
    border-left: solid 5px var(--dark-green);
}

.plagiarised {
    border-right: solid 5px var(--dark-red);
}

.dropdown {
    position: relative !important;
    display: inline-block !important;
    z-index: 1000 !important;
}

.dropdown-trigger {
    padding: 10px 15px;
    background-color: #f2f2f2;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 48px;
    left: -500px;
    width: auto;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    padding: 16px;
    z-index: 1;
    border-radius: 0;
    box-sizing: border-box;
}


.dropdown:hover .dropdown-content,
.dropdown.show .dropdown-content {
    display: block;
}

.dropdown-content a {
    text-decoration: none;
    color: #333;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    border-radius: 5px;
}

/* Loader Styles */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: var(--custom-white);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

.fading-bars {
    display: flex;
    justify-content: space-between;
    width: 80px;
}

.bar {
    width: 10px;
    height: 40px;
    background-color: var(--dark-theme);
    animation: fade 1s infinite;
}

.bar:nth-child(1) {
    animation-delay: 0s;
}

.bar:nth-child(2) {
    animation-delay: 0.2s;
}

.bar:nth-child(3) {
    animation-delay: 0.4s;
}

.bar:nth-child(4) {
    animation-delay: 0.6s;
}

.bar:nth-child(5) {
    animation-delay: 0.8s;
}

.custom-alert {
    background-color: var(--custom-white) !important;
    border-radius: 0px !important;
    border-left: 5px solid var(--dark-theme) !important;
}


@keyframes fade {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

.notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    /* Ensure the toast stays on top */
}

.notifications :where(.custom-toast, .column) {
    display: flex;
    align-items: center;
}

.notifications .custom-toast {
    width: 350px;
    position: relative;
    overflow: hidden;
    list-style: none;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    background: var(--custom-white);
    justify-content: space-between;
    animation: show_toast 0.3s ease forwards;
    border-left: 3px solid;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    /* Add left-side border */
}

.custom-toast.success {
    border-left-color: var(--dark-green);
}

.custom-toast.error {
    border-left-color: var(--dark-red);
}

.custom-toast.warning {
    border-left-color: var(--dark-orange);
}

.custom-toast.info {
    border-left-color: var(--chart-color-2);
}

.custom-toast .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    color: var(--toast-type);
    font-size: 1.2rem;
}

.custom-toast .close-btn:hover {
    color: var(--dark-color);
}

@keyframes show_toast {
    0% {
        transform: translateX(100%);
    }

    40% {
        transform: translateX(-5%);
    }

    80% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-10px);
    }
}

.notifications .custom-toast.hide {
    animation: hide_toast 0.3s ease forwards;
}

@keyframes hide_toast {
    0% {
        transform: translateX(-10px);
    }

    40% {
        transform: translateX(0%);
    }

    80% {
        transform: translateX(-5%);
    }

    100% {
        transform: translateX(calc(100% + 20px));
    }
}

.custom-toast::before {
    position: absolute;
    content: "";
    height: 3px;
    width: 100%;
    bottom: 0px;
    left: 0px;
    animation: progress 3s linear forwards;
}

@keyframes progress {
    100% {
        width: 0%;
    }
}

.custom-toast.success::before,
.btn#success {
    background: var(--dark-green);
}

.custom-toast.error::before,
.btn#error {
    background: var(--dark-red);
}

.custom-toast.warning::before,
.btn#warning {
    background: var(--dark-orange);
}

.custom-toast.info::before,
.btn#info {
    background: var(--chart-color-2);
}

.custom-toast .column iconify-icon {
    font-size: 1.75rem;
    display: inline-block;
}

.custom-toast.success .column iconify-icon {
    color: var(--dark-green);
}

.custom-toast.error .column iconify-icon {
    color: var(--dark-red);
}

.custom-toast.warning .column iconify-icon {
    color: var(--dark-orange);
}

.custom-toast.info .column iconify-icon {
    color: var(--chart-color-2);
}

.custom-toast-text {
    display: flex;
    flex-direction: column;
    margin-left: 12px;
}

.custom-toast-type {
    font-weight: bold;
    font-size: 1rem;
}

.custom-toast-message {
    font-size: 0.8rem;
    margin-top: 4px;
    color: var(--sub-text-color);
}


.content-div-bottom {
    margin-bottom: 60px;
}

.carousel-fade .carousel-item {
    transition: opacity 2s ease-in-out;
}

.inside-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1051;
    /* Z-index higher than offcanvas body */
}

.carousel-item {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Align images vertically */
}

.carousel-item img {
    width: 100%;
    height: auto;
    /* Make sure images adjust properly */
}

.carousel-item img {
    object-fit: cover;
    height: 100vh;
}

/* Add gradient overlay for carousel images */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.calendar {
    max-width: 100%;
    margin: auto;
}

.calendar th,
.calendar td {
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
}

.calendar .event-day {
    background-color: #4ff237;

}

.calendar .event-day-absent {
    background-color: #e73d3d;
}

.calendar .event-day-watched {
    background-color: #e73dd9;
}

.left-border {
    border-left: var(--dark-theme) solid 4px;
    padding-left: 10px;
}

.table-btn {
    font-size: var(--font-size-14);
    font-weight: 500;
    padding: 8px 24px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Button Variants */
.table-btn-dark-theme {
    background-color: var(--dark-theme);
    color: white;

    &:hover {
        background-color: var(--main-button-hover);
    }
}

.table-btn-danger {
    background-color: var(--light-red);
    color: var(--dark-red);
}

.table-btn-success {
    background-color: var(--light-green);
    color: var(--dark-green);
}

.table-btn-primary {
    background-color: var(--light-theme);
    color: var(--dark-theme);
}

.table-btn-pink {
    background-color: var(--light-pink);
    color: var(--dark-pink);
}

.table-btn-purple {
    background-color: var(--light-purple);
    color: var(--dark-purple);
}

.table-btn-orange {
    background-color: var(--light-orange);
    color: var(--dark-orange);
}

.table-btn-yellow {
    background-color: var(--light-yellow);
    color: var(--dark-yellow);
}

/* Hover States */
.table-btn-primary.active:hover {
    background-color: var(--dark-theme);
    color: white;
}

.table-btn-danger.active {
    background-color: var(--dark-red);
    color: white;
}

.table-btn-success.active {
    background-color: var(--dark-green);
    color: white;
}

.table-btn-primary.acive:hover {
    background-color: var(--dark-theme);
    color: white;
}

.table-btn-pink.active {
    background-color: var(--dark-pink);
    color: white;
}

.table-btn-purple.active {
    background-color: var(--dark-purple);
    color: white;
}

.table-btn-orange.active {
    background-color: var(--dark-orange);
    color: white;
}

.table-btn-yellow.active {
    background-color: var(--dark-yellow);
    color: white;
}


/* Define the stroke animation */
/* Define the outline border animation */
.ongoing-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    /* Adjust as needed */
    height: 60px;
    border-radius: 50%;
    animation: moveUpDown 1.5s infinite alternate ease-in-out;
}

/* Animated outline */
.ongoing-icon::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--light-theme);
    animation: outlineGlow 1.5s infinite alternate ease-in-out;
}

/* Glowing effect */
@keyframes outlineGlow {
    0% {
        border-color: var(--light-theme);
        transform: scale(1);
    }

    100% {
        border-color: var(--glow-theme);
        transform: scale(1.1);
    }
}

/* Floating up-down effect */
@keyframes moveUpDown {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-5px);
    }
}

/* Icon itself */
.ongoing-icon iconify-icon {
    font-size: 40px;
    color: var(--dark-theme);
}


.selected {
    background-color: var(--dark-theme);
    color: white;
}

.selected:hover {
    background-color: var(--main-button-hover);
    color: white;
}

/* pagination styles */

.custom-pagination {
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 4px;
    /* Add gap between page numbers */
}

.page-item {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.page-item button {
    background-color: var(--light-theme) !important;
    color: var(--dark-theme) !important;
    border: none !important;
}

.page-item button:hover {
    background-color: var(--line-color) !important;
}

.previous-button,
.next-button {
    height: 40px !important;
}

.previous-button:hover,
.next-button:hover {
    background-color: var(--light-theme) !important;
    border: none;
    color: var(--dark-theme) !important;
}

.previous-button:hover span icoify-icon,
.next-button:hover span icoify-icon {
    color: var(--dark-theme) !important;
}

.page-item.active button {
    background-color: var(--dark-theme) !important;
    color: white !important;
    pointer-events: none;
    font-weight: 500;
}


@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.date-selector-container {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.date-selector-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.date-selector {
    display: inline-flex;
    gap: 15px;
}

.date-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 90px;
    background: var(--custom-white);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.date-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.date-option.selected {
    background: var(--dark-theme);
    color: white;
    box-shadow: 0 5px 20px rgba(58, 123, 213, 0.3);
}

.day-name {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 5px;
}

.date-number {
    font-size: 24px;
    font-weight: 600;
}

.month-year {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 5px;
}

.date-option.selected .day-name,
.date-option.selected .month-year {
    opacity: 0.9;
}

/* Month/Year Selector */
.month-year-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 15px;
}

.month-year-title {
    font-size: 18px;
    font-weight: 600;
}

.nav-arrows {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-arrow {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--light-theme);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-arrow:hover {
    background: var(--light-theme);
}

/* Full-screen overlay */
.full-screen-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    /* Shadow background */
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    /* Indicates the image can be zoomed out */
}

/* Image container */
.image-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    /* Allows scrolling if the image is larger than the screen */
}

/* Full-screen image */
.full-screen-image {
    max-width: 100%;
    max-height: 100%;
    cursor: grab;
    /* Indicates the image can be moved */
    transition: transform 0.25s ease;
    /* Smooth zoom effect */
}

.payment-timeline {
    position: relative;
    padding: 40px 0;
}

.timeline-progress {
    position: absolute;
    top: 60px;
    left: 50px;
    right: 50px;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    z-index: 1;
}

.timeline-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4e73df, #224abe);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.timeline-progress .progress-bar.completed {
    background: linear-gradient(90deg, #4e73df, #224abe);
}

.timeline-progress .progress-bar.reject {
    background: linear-gradient(90deg, #e74a3b, #c0392b);
}

.timeline-progress .progress-bar.accepted {
    background: linear-gradient(90deg, #66df4e, #8ef580);
}

.timeline-items {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 16.666%;
    position: relative;
}

.timeline-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--custom-white);
    border: 4px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 24px;
    margin-bottom: 15px;
    transition: all 0.3s ease;

}

.timeline-item.active .timeline-bubble {
    border-color: var(--dark-theme);
    color: var(--dark-theme);

}

.timeline-item.completed .timeline-bubble {
    border-color: var(--dark-theme);
    color: var(--dark-theme);
}

.timeline-item.accepted .timeline-bubble {
    border-color: var(--dark-green);
    color: var(--dark-green);
}


.timeline-item.reject .timeline-bubble {
    border-color: var(--dark-red);
    color: var(--dark-red);
}

.timeline-bubble.pulse {
    animation: pulse 2s infinite;
}


@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(78, 115, 223, 0.4);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(78, 115, 223, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(78, 115, 223, 0);
    }
}

.timeline-label {
    text-align: center;
    padding: 0 10px;
}

.timeline-label span {
    display: block;
    font-weight: 600;
    color: #5a5c69;
    margin-bottom: 4px;
    font-size: 14px;
}

.timeline-item.active .timeline-label span {
    color: var(--dark-theme);
}

.timeline-item.completed .timeline-label span {
    color: var(--dark-theme);
}

.timeline-item.accepted .timeline-label span {
    color: var(--dark-green);
}

.timeline-item.reject .timeline-label span {
    color: var(--dark-red);
}

.status-detail {
    font-size: 12px;
    color: #858796;
    font-weight: 400;
}


/* Responsive adjustments */
@media (max-width: 992px) {
    .timeline-items {
        flex-wrap: wrap;
    }

    .timeline-item {
        width: 33.333%;
        margin-bottom: 30px;
    }

    .timeline-progress {
        display: none;
    }
}

@media (max-width: 768px) {
    .timeline-item {
        width: 50%;
    }
}

.premium-timer {
    position: fixed;
    top: 200px;
    right: 20px;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
    width: 180px;
    text-align: center;
    background: linear-gradient(145deg, #1a2a4f, #0d1a33);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 2px 5px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(0);
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.premium-timer:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.timer-background {
    padding: 20px 15px 15px;
    position: relative;
    overflow: hidden;
}

.timer-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    opacity: 0.5;
}

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

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

.time-bubble {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 15px;
    margin-bottom: 12px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.2);
    animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
    0% {
        box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(65, 120, 255, 0.4);
    }

    100% {
        box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 20px 5px rgba(65, 120, 255, 0);
    }
}

#timerMinutes,
#timerSeconds {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: inline-block;
    min-width: 36px;
    position: relative;
    transition: all 0.3s ease;
}

.time-separator {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 2px;
    vertical-align: top;
}

.timer-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 5px;
}

.progress-container {
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
}

.progress-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            transparent 25%,
            rgba(255, 255, 255, 0.1) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 50%,
            transparent 75%,
            rgba(255, 255, 255, 0.1) 75%,
            rgba(255, 255, 255, 0.1) 100%);
    background-size: 20px 100%;
    animation: track-move 1s linear infinite;
}

@keyframes track-move {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 20px 0;
    }
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4178ff, #00d4ff);
    width: 100%;
    position: relative;
    transition: width 1s linear;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.progress-thumb {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
    z-index: 2;
}

/* Warning state */
.warning .time-bubble {
    animation: danger-pulse 0.8s infinite alternate, pulse-glow 3s infinite alternate;
}

.warning #timerMinutes,
.warning #timerSeconds {
    color: #ff5e5e;
}

.warning .progress-bar {
    background: linear-gradient(90deg, #ff4164, #ff4b2b);
}

.warning .progress-thumb {
    box-shadow: 0 0 15px rgba(255, 75, 43, 0.8);
}

@keyframes danger-pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

/* Critical state (last minute) */
.critical {
    animation: shake 0.5s infinite alternate;
}

@keyframes shake {
    0% {
        transform: translateX(-3px);
    }

    100% {
        transform: translateX(3px);
    }
}

.upload-image {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.offcanvas-course-item:hover {
    background-color: var(--light-theme);

}


/* payment details view card css -> start*/

.payment-card-container {
    perspective: 1000px;
}

.payment-card {
    position: relative;
    border: none;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    z-index: -1;
}

.card-background-danger {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--red-button-hover) 100%);
    z-index: -1;
}


.card-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.card-background-danger::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.card-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.decor-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.decor-circle-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
}

.decor-circle-2 {
    width: 150px;
    height: 150px;
    bottom: -30px;
    left: -30px;
}

.decor-circle-3 {
    width: 80px;
    height: 80px;
    top: 50%;
    left: 60%;
}

.card-content {
    padding: 25px;
    color: white;
    position: relative;
    z-index: 1;
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.reference-section {
    flex: 1;
}

.reference-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
    display: block;
    margin-bottom: 5px;
}

.reference-number {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.amount-section {
    text-align: right;
}

.amount-display {
    display: inline-block;
    text-align: right;
}

.amount-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
    display: block;
}

.amount-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.details-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.detail-item {
    flex: 1;
    min-width: 150px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.detail-item-btn {
    flex: 1;
    min-width: 150px;
    background: var(--dark-red);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}


.detail-item:hover {
    transform: translateY(-3px);
}

.detail-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon svg {
    color: white;
    opacity: 0.9;
}

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

.detail-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    display: block;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: white;
    word-break: break-word;
    display: block;
}


/* payment details view card css -> end */


/* Quiz-View Styles -> Start */

.simple-timer {
    font-size: 48px;
    font-weight: bold;
    color: var(--dark-theme) !important;
    text-align: center;
    animation: pulse 1s ease-in-out infinite;
}

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

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Premium Progress Navigation */
.quiz-progress-nav {
    width: 100%;
    padding: 20px 15px 30px 15px !important;
    position: relative;
}

.progress-track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.progress-step {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.step-indicator {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--body-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.step-number {
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.3s ease;
}

.step-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
}

.step-line {
    height: 3px;
    background: var(--body-color);
    flex-grow: 1;
    margin: 0 8px;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.step-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--dark-theme);
    transition: width 0.4s ease;
}

/* Active State */
.progress-step.active .step-indicator {
    background: var(--highlight-theme);
    transform: scale(1.1);
    box-shadow: 0 8px 15px rgba(38, 80, 104, 0.3);
}

.progress-step.active .step-number {
    color: white;
    transform: scale(1);
}

/* Completed State */
.progress-step.completed .step-indicator {
    background: var(--dark-theme);
    box-shadow: 0 8px 15px rgba(38, 78, 104, 0.3);
}

.progress-step.completed .step-number {
    color: white;
    transform: scale(1);
}



.progress-step.completed .step-line::after {
    width: 100%;
}


/* Current Question Animation */
.progress-step.active .step-indicator {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1.1);
    }

    50% {
        transform: translateY(-5px) scale(1.15);
    }
}

/* Quiz-View Styles -> End */

.required::after {
    content: "*" !important;
    color: var(--dark-red) !important;
    font-size: var(--font-size-20) !important;
    font-weight: 400 !important;
    margin-left: 4px !important;

}

.table-responsive {
    overflow-x: scroll;
}

.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    /* auto is better than scroll (scroll only if needed) */
    -webkit-overflow-scrolling: touch;
    /* smooth scrolling on iOS */
}

/* Custom horizontal scrollbar */
.table-responsive-wrapper::-webkit-scrollbar {
    margin-top: 10px;
    height: 8px;
    /* scrollbar thickness */
}

.table-responsive-wrapper::-webkit-scrollbar-track {
    background: var(--line-color);
    border-radius: 4px;
}

.table-responsive-wrapper::-webkit-scrollbar-thumb {
    background: var(--dark-theme);
    border-radius: 6px;
    border: 2px solid var(--line-color);
    /* creates the pill effect */
}

.table-responsive-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--main-button-hover);
}

.table-responsive,
.pagination-wrapper {
    min-width: max-content;
}

.table-responsive-wrapper::-webkit-scrollbar {
    display: none;
}

.no-data-icon {
    max-width: 300px !important;
    max-height: auto !important;
}


.countdown-header h4 {
    margin: 0 0 15px 0;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;

}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.time-unit {
    flex: 1;
    min-width: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.time-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.time-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    margin-top: 3px;
}

.image-box {
    width: 400px;
    height: 250px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--line-color);
    background-color: var(--custom-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-box:hover {
    transform: scale(1.02);
}

.question-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* fits within box while keeping aspect ratio */
    background-color: var(--custom-white);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-box:hover .image-overlay {
    opacity: 1;
}

.view-image-btn {
    background: #ffffffcc;
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.4rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-image-btn:hover {
    background: #1360a8;
    color: #fff;
}

/* ===== Modal Zoom Styling ===== */
.modal-image-container {
    position: relative;
    overflow: hidden;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
}

#previewImage {
    transition: transform 0.2s ease;
    max-width: 100%;
    max-height: 90vh;
}

.zoom-controls {
    position: absolute;
    bottom: 15px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.zoom-btn {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    padding: 8px 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.zoom-btn:hover {
    background-color: #1360a8;
    color: white;
}

.multiple-ribbon {
    background: linear-gradient(135deg, #3dbb61, #1c7c43);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 0 6px 6px 0;
    position: relative;
}

.multiple-ribbon::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 6px solid #1c7c43;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .studentPolicyPageImage {
        height: 285px !important;
        width: 285px !important;
    }

    .subjectOverviewLectureImage {
        height: 150px !important;
        width: 150px !important;
    }

    .quiz-image {
        height: 100px !important;
        width: 100px !important;
    }

    .award-image {
        height: 250px !important;
        width: 250px !important;
    }

    iframe {
        height: 200px !important;
    }
}

.img-thumbnail {
    object-fit: cover;
    width: 100%;
    background-color: #f8f9fa;
}

.quiz-progress-container {
    overflow-x: auto;
    overflow-y: auto;
}

.quiz-progress-box {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1 !important;
    border: solid 2px var(--line-color);
    /* dark theme */
    color: var(--dark-theme);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.quiz-progress-box:hover {
    transform: scale(1.05);
    background-color: var(--light-theme);
}

.quiz-progress-box.active {
    background-color: var(--dark-theme);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    animation: pulseActive 0.8s infinite alternate;
    color: white;
}

.quiz-progress-box.completed {
    background-color: #198754;
    color: #fff;
}

.quiz-progress-box-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1 !important;
    border: solid 2px var(--line-color);
    /* dark theme */
    color: var(--dark-theme);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.quiz-progress-box-sm:hover {
    transform: scale(1.05);
    background-color: var(--light-theme);
}

.quiz-progress-box-sm.active {
    background-color: var(--dark-theme);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    animation: pulseActive 0.8s infinite alternate;
    color: white;
}

.quiz-progress-box-sm.completed {
    background-color: #198754;
    color: #fff;
}

.quiz-progress-box.completed-active {
    background-color: #198754;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    animation: pulseActive 0.8s infinite alternate;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    animation: pulseActive 0.8s infinite alternate;
}

.progress-label {
    font-weight: 600;
    font-size: 14px;
}

/* Active animation */
@keyframes pulseActive {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.08);
    }

}

.modern-modal {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    padding: 2rem;
    position: relative;
}

.modal-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-alert-icon {
    color: var(--dark-theme);
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    padding: 10px;
}

.modal-title {
    font-weight: 600;
    color: var(--main-text-color);
}

.modal-text {
    color: var(--sub-text-color);
    font-size: 0.95rem;
    margin: 0 auto;
    max-width: 300px;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.modal-actions .btn {
    min-width: 100px;
    font-weight: 500;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--sub-text-color);
    cursor: pointer;
}

.close-btn:hover {
    color: #000;
}

.answer-content p,
.answer-content div {
    margin: 0;
    padding: 0;
}

/* Target only your special scroll area */
.custom-scroll {
    overflow-y: auto;
    max-height: calc(100vh - 80px);
    scrollbar-width: thin;
    /* Firefox: thin scrollbar */
    scrollbar-color: var(--dark-theme) transparent;
    /* Firefox: thumb and track colors */
}

/* WebKit browsers (Chrome, Edge, Safari) */
.custom-scroll::-webkit-scrollbar {
    width: 10px;
    /* Thin scrollbar width */
}

.custom-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(13, 110, 253, 0.6);
    /* Blue thumb with transparency */
    border-radius: 10px;
    /* Rounded like macOS */
    transition: background-color 0.3s;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background-color: rgba(13, 110, 253, 0.9);
    /* Darker blue when hovering */
}


/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    .studentPolicyPageImage {
        height: 285px !important;
        width: 285px !important;
    }

    .subjectOverviewLectureImage {
        height: 150px !important;
        width: 150px !important;
    }

    .quiz-image {
        height: 100px !important;
        width: 100px !important;
    }

    .award-image {
        height: 250px !important;
        width: 250px !important;
    }

    iframe {
        height: 350px !important;
    }

}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .studentPolicyPageImage {
        height: 250px !important;
        width: 250px !important;
    }

    .subjectOverviewLectureImage {
        height: 160px !important;
        width: 160px !important;
    }

    .quiz-image {
        height: 120px !important;
        width: 120px !important;
    }

    .award-image {
        height: 260px !important;
        width: 260px !important;
    }

    iframe {
        height: 400px !important;
    }

    .app-wrapper {
        width: 100% !important;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .studentPolicyPageImage {
        height: 285px !important;
        width: 285px !important;
    }

    .subjectOverviewLectureImage {
        height: 200px !important;
        width: 200px !important;
    }

    .quiz-image {
        height: 125px !important;
        width: 125px !important;
    }

    .award-image {
        height: 300px !important;
        width: 300px !important;
    }

    iframe {
        height: 500px !important;
    }

    .app-wrapper {
        width: 100% !important;
    }

}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .studentPolicyPageImage {
        height: 275px !important;
        width: 275px !important;
    }

    .subjectOverviewLectureImage {
        height: 200px !important;
        width: 200px !important;
    }

    .quiz-image {
        height: 125px !important;
        width: 125px !important;
    }

    .award-image {
        height: 300px !important;
        width: 300px !important;
    }

    iframe {
        height: 550px !important;
    }

    .sideMenuArea {
        width: 250px !important;
    }

    .app-wrapper {
        width: calc(100% - 250px) !important;
    }

    .app-wrapper-full {
        width: 100%;
    }

    .table-responsive-wrapper::-webkit-scrollbar {
        display: block;
        height: 20px;
    }
}

@media (max-width: 992px) {
    .timeline-items {
        flex-wrap: wrap;
    }

    .timeline-item {
        width: 33.333%;
        margin-bottom: 30px;
    }

    .timeline-progress {
        display: none;
    }

    .sideMenuArea {
        display: none;
    }

    .table-responsive-wrapper::-webkit-scrollbar {
        display: block;
        height: 20px;
    }
}

@media (max-width: 768px) {
    .timeline-item {
        width: 50%;
    }

}