body {
    line-height: normal !important;
}

/* Page Loader ================================= */
.page-loader-wrapper {
    z-index: 99999999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.7;
    background: #f9f9f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    padding: 0;
}

.page-loader-wrapper p {
    font-size: 13px;
    margin-top: 10px;
    font-weight: bold;
    color: #444;
}

.page-loader-wrapper .loader {
    position: relative;
}

.page-loader-wrapper .loading-spinner {
    margin: 0 auto;
    display: block;
}

.lds-grid {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

/*Loader styles*/
.lds-grid {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-grid div {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00B0E4;
    animation: lds-grid 1.2s linear infinite;
}

.lds-grid div:nth-child(1) {
    top: 8px;
    left: 8px;
    animation-delay: 0s;
}

.lds-grid div:nth-child(2) {
    top: 8px;
    left: 32px;
    animation-delay: -0.4s;
}

.lds-grid div:nth-child(3) {
    top: 8px;
    left: 56px;
    animation-delay: -0.8s;
}

.lds-grid div:nth-child(4) {
    top: 32px;
    left: 8px;
    animation-delay: -0.4s;
}

.lds-grid div:nth-child(5) {
    top: 32px;
    left: 32px;
    animation-delay: -0.8s;
}

.lds-grid div:nth-child(6) {
    top: 32px;
    left: 56px;
    animation-delay: -1.2s;
}

.lds-grid div:nth-child(7) {
    top: 56px;
    left: 8px;
    animation-delay: -0.8s;
}

.lds-grid div:nth-child(8) {
    top: 56px;
    left: 32px;
    animation-delay: -1.2s;
}

.lds-grid div:nth-child(9) {
    top: 56px;
    left: 56px;
    animation-delay: -1.6s;
}

@keyframes lds-grid {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Preloaders ================================== */

.owl-carousel-primary {
    padding: 0px !important;
}

.owl-carousel {
    display: ruby-text;
}

.card.classes-card {
    margin-bottom: 30px !important;
    margin-right: 10px;
}

.card.classes-card .card-body .start_time {
    display: block;
}

.site-content .side_navbar,
.site-content .nua-sidebar {
    width: 75px;
}

.site-content .main_content {
    padding-left: 75px;
}

.card.classes-card .card-body .p-top,
.card.classes-card .card-body .card-title,
.card.classes-card .card-body .card-text {
    overflow: hidden;
    width: 80%;
    word-wrap: break-word;
}

.card.classes-card .card-body .card-title {
    font-size: 16px;
    font-weight: 600;
}

@media only screen and (max-width: 767px) {
    .site-content .side_navbar {
        width: 65px;
        padding: 20px 10px;
    }

    .login-area .login-left {
        order: 2 !important;
    }

    .mobile-logo {
        display: block !important;
    }

    .laptop-logo {
        display: none;
    }
}

@media only screen and (max-width: 767px) {
    .site-content .main_content {
        padding-left: 65px;
    }
}

.upcoming_classes_wrap {
    max-width: 1520px;
}

.trainerMenu a,
.trainerMenu a:visited,
.trainerMenu a:hover,
.trainerMenu a:focus {
    color: #FFF !important;
    text-decoration: none !important;
}

/* Double caret icons on the dropdown menus issue*/
.ef-dashboard.ef-dropzone .btn .caret {
    display: none !important;
}

/*.efront-form .note-editor .note-icon-caret {
    display: none !important;
}*/

/*.btn:not(.btn-link):not(.btn-circle):not(.btn-a) {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16), 0 2px 10px rgba(0, 0, 0, 0.12);
    border: none;
    font-size: 13px;
}*/

.ef-unit-tree .ef-expand-collapse-handle.fa-angle-right,
.ef-unit-tree .ef-expand-collapse-handle .fa-angle-right {
    font-size: 20px !important;
    line-height: 1.5rem;
}

.btn-group>.btn+.dropdown-toggle {
    margin-top: 0px;
}

.list-group-item {
    padding: 5px 0px !important;
}

.badge {
    padding: 2px 7px !important;
}

.card.classes-card {
    overflow: unset;
}

.side_navbar .main_navigation .navigations>li>button .label {
    font-size: 16px !important;
    ine-height: 1.3;
    font-weight: 600 !important;
}

.card-primary {
    border: 1px solid #eaecf5 !important;
    border-radius: 16px !important;
}

h5 {
    font-size: 18px !important;
    font-weight: 500 !important;
    color: #101828 !important;
}

.card-primary.style-2 .card-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-title.style-2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#profile-picture {
    height: 92% !important;
    width: 100% !important;
}

.point-content {
    background-color: transparent;
}

.page-header {
    padding-bottom: 10px !important;
    padding-top: 20px !important;
    margin: 0px !important;
}

.status-tabs .no-gutters {
    color: #667085 !important;
}

.tab-primary .nav-tabs button.sub {
    margin-top: 10px;
    color: #667085 !important;
    min-width: 40px;
}

.nav-tabs .dropdown-menu {
    margin-top: -62px !important;
}

.nav-tabs .dropdown-menu.teacher {
    margin-top: -102px !important;
}

.p-4 {
    padding: 0px !important;
}

.container {
    margin-right: auto !important;
    margin-left: auto !important;
}

.lesson_plan .navigations li>button .label {
    text-transform: capitalize;
    white-space: break-spaces;
}

#coursunaAi .generated-lesson-plan {
    padding-top: 20px;
}

.status-tabs {
    margin-top: 5px;
}

.fade.active {
    opacity: 1 !important;
}

.btn:not(.dropdown-toggle):hover,
.btn:not(.dropdown-toggle):focus,
.btn:not(.dropdown-toggle).focus {
    /*color: #ffffff;*/
    text-decoration: none;
}

.form_button .btn,
.form_button input[type="submit"],
.form_button button[type="submit"] {
    font-size: 16px !important;
    line-height: 1;
    font-weight: 500 !important;
}

.form_button .btn:hover,
.form_button input[type="submit"]:hover,
.form_button button[type="submit"]:hover {
    background-color: transparent !important;
    color: #ef6820 !important;
}

/*.btn {
    display: inline-block;
    font-weight: 450 !important;
    line-height: 1.5 !important;
    border: 1px solid transparent !important;
    font-size: 1.5rem !important;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out !important;
}*/

.form_group input[type="number"] {
    display: flex;
    width: 100%;
    border: 1px solid #d0d5dd;
    background-color: #ffffff;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 400;
    font-family: "Inter", sans-serif;
    color: #344054;
    padding: 10px 14px;
}

.form_group input[type="number"]:focus {
    border-color: #ef6820;
}

.nice-select.disabled {
    border-color: #ededed !important;
    color: #999 !important;
    pointer-events: none !important;
}

.form_group input[type="text"].disabled {
    border-color: #ededed !important;
    color: #999 !important;
    pointer-events: none !important;
}

#contentForm .rte-modern.rte-desktop.rte-toolbar-default {
    min-width: auto !important;
}

.form_group label.form-check-label {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

.breadcrumbs .breadcrumb_nav li:not(.current) {
    cursor: pointer;
}

.nav:before,
.nav:after {
    content: none !important;
}

div.ef-block {
    padding: 10px !important;
}

div.card {
    padding: 10px !important;
}

.all-courses-section div.card {
    padding: 0 !important;
}

.iti--inline-dropdown .iti__dropdown-content {
    z-index: 99 !important;
}

.login-area .form-box .button-primary {
    margin-bottom: 10px;
}

.iti {
    width: 100% !important;
}

.login-options {
    padding-bottom: 0;
}

.modal.fade.show {
    opacity: 1 !important;
}

.btn-warning {
    color: #fff !important;
    background-color: var(--c-brand-warning) !important;
    border-color: var(--c-brand-warning-darken-5) !important;
}

#live-sessions ul.header-dropdown {
    list-style-type: none !important;
    margin-left: 0px
}

#live-sessions .open>.dropdown-menu {
    display: inline-table;
}

#live-sessions .dropdown-toggle::after {
    display: none;
}

.input-group>.form-control,
.input-group>.form-select {
    position: relative !important;
    flex: 1 1 auto !important;
    width: 1% !important;
    min-width: 0 !important;
}

.learner-details-area .col {
    padding-left: 0px;
    padding-right: 0px;
}

.button-primary {
    border-radius: 8px !important;
    /*font-size: 16px !important;*/
    color: #fff !important;
    /*font-weight: 500 !important;*/
    padding: 10px 26px !important;
}

.button-primary:visited {
    color: #fff !important;
}

/* Fixed small font size */
.form-select {
    font-size: 1.5rem;
}

.form-control {
    font-size: 1.5rem;
}

/* END Fixed small font size */

/* Header dropdown */
.my-account .dropdown-menu li {
    display: block;
    padding: 10px 20px;
    clear: both;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    white-space: nowrap;
}

.my-account .dropdown-menu li:hover {
    background-color: #f5f5f5;
}

.my-account .notifications-link {
    font-weight: 700;
    border-bottom: 1px solid #ddd;
    padding: 5px 20px;
}

.my-account .notifications-link:hover {
    background-color: transparent;
}

.my-account .notifications-menu {
    display: none;
    padding-left: 0;
}

.my-account .show-notifications .notifications-menu {
    display: block;
}

li.user-info {
    border-bottom: 1px solid #ddd;
}

#communication {
    display: block;
}

.my-account .notifications-menu {
    max-height: 815px;
    width: 260px;
    margin-left: auto;
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 12px;
    letter-spacing: 1px;
    line-height: 15px;
    padding: 4px 0;
    border: 0;
}

.my-account .notifications-menu li {
    text-align: right;
    width: 100%;
    padding: 0;
}

.my-account .notifications-menu li.mark-all a {
    text-align: right;
    font-size: 11px;
    display: inline-block;
}

li#communication.is-read ul.notifications-menu li.mark-all {
    display: none !important;
}

.my-account .notifications-menu li.mark-all a,
.my-account .notifications-menu li.show-all a {
    padding: 7px 14px;
}

li#communication ul.notifications-menu li.show-all a {
    text-align: center;
}

.my-account .notifications-menu li.content {
    padding: 0px;
    max-height: 280px;
    overflow: auto;
    text-align: center;
    border-top: 1px solid #414C59;
    border-bottom: 1px solid #414C59;
}

.my-account .notifications-menu li.content div.no-results {
    margin: 30px 0px;
    text-align: center;
    color: #A1A6B0;
    display: none;
}

li#communication.is-read ul.notifications-menu li.content div.no-results {
    display: block;
}

li#communication li.content div.no-results span.ef-icon {
    background-size: 70%;
}

li#communication li.content div.no-results span {
    display: block;
    font-size: 16px;
}

.my-account .notifications-menu li.content a.msg:first-child {
    border-top: 0px none;
}

.my-account .notifications-menu li.content a.msg {
    width: 100%;
    padding: 10px;
    background-color: transparent;
    position: relative;
    display: block;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.my-account .notifications-menu li.content a.msg,
.my-account .notifications-menu li.content a.msg header,
.my-account .notifications-menu li.content a.msg article,
.my-account .notifications-menu li.content a.msg footer {
    display: block;
    width: 100%;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

li#communication i {
    line-height: 1.5;
}

.student .my-account .caret {
    color: black;
}

header .my-account .avatar {
    margin-right: 5px !important;
}

header .my-account ul.dropdown-menu {
    left: -180px !important;
}

/* Apps menu css*/
header .my-apps ul.dropdown-menu {
    top: 10px;
    left: -120px !important;
}

.dropdown-menu .header {
    font-size: 13px;
    font-weight: bold;
    min-width: 270px;
    border-bottom: 1px solid #eee;
    text-align: center;
    padding: 4px 0 6px 0;
}

.apps-dropdown-item {
    display: block;
    text-decoration: none;
    color: black;
    text-align: center;
    width: 86px;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    padding: 12px 2px 5px;
}

.waves-effect {
    position: relative;
    cursor: pointer;
    display: inline-block;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/*  */

.pagination a.disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* ===== ONE ACADEMY BACK BUTTON ===== */

/* Container for the back button with text above */
.logo-back-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

/* Small "Back to" text above the logo */
.back-text {
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
    padding-left: 10px;
    transition: color 0.3s ease;
    cursor: pointer;
}

/* Clickable logo button */
.clickable-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    /*padding: 6px 8px;*/
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.clickable-logo:hover {
    background: rgba(255, 107, 53, 0.05);
    transform: translateX(-2px);
    text-decoration: none;
}

.logo-back-container:hover .back-text {
    color: #ff6b35;
}

.clickable-logo:active {
    transform: translateX(-1px);
}

/* One Academy Logo Recreation */
.logo-rings {
    display: flex;
    align-items: center;
    position: relative;
    width: 50px;
    height: 18px;
}

.ring {
    width: 16px;
    height: 16px;
    border: 2.5px solid;
    border-radius: 50%;
    position: absolute;
    background: white;
}

/* First ring - Blue */
.ring-1 {
    left: 0;
    border-color: #4a5568;
    z-index: 3;
}

/* Second ring - Blue, overlapping */
.ring-2 {
    left: 8px;
    border-color: #4a5568;
    z-index: 2;
}

/* Third ring - Orange, overlapping */
.ring-3 {
    left: 16px;
    border-color: #ff6b35;
    z-index: 1;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #ff6b35;
    margin-left: 8px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .back-text {
        font-size: 10px;
    }

    .logo-text {
        font-size: 16px;
    }

    .ring {
        width: 14px;
        height: 14px;
        border-width: 2px;
    }

    .logo-rings {
        width: 42px;
        height: 16px;
    }

    .ring-2 {
        left: 7px;
    }

    .ring-3 {
        left: 14px;
    }
}

/* Accessibility */
.clickable-logo:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
    text-decoration: none;
    margin-bottom: 10px;
}

/* Loading state */
.clickable-logo.loading {
    pointer-events: none;
    opacity: 0.7;
}

.clickable-logo.loading .logo-rings {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ===== END BACK BUTTON STYLES ===== */

.header-logo img {
    width: unset;
    max-width: 150px;
}

/* Tour Button Options */
.tour-option {
    position: absolute;
    /*top: 8px;*/
    right: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.tour-option-1 {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #ff8c00, #e07c00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
    position: relative;
}

.tour-option-1:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
}

.tour-option-1::after {
    content: 'NEW';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 8px;
    animation: pulse 2s infinite;
}

.tour-option-1 .tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.tour-option-1 .tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #1f2937;
}

.tour-option-1:hover .tooltip {
    opacity: 1;
    bottom: -40px;
}

/* Tour Modal Styles */
.tour-modal.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.tour-modal.modal-overlay.active {
    display: flex;
}

.tour-modal .modal {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: all 0.3s ease;
    position: relative;
    display: block;
    height: auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.tour-modal.modal-overlay.active .modal {
    transform: scale(1);
}

.tour-modal .modal-header {
    text-align: center !important;
    margin-bottom: 32px;
    padding: revert;
    border-bottom: none;
    display: block;
}

.tour-modal .modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4a5fbd, #3b4da8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 32px;
}

.tour-modal .modal-title {
    font-size: 24px;
    color: #212529;
    margin-bottom: 12px;
    font-weight: 600;
    max-width: none;
}

.tour-modal .modal-subtitle {
    color: #6c757d;
    font-size: 16px;
}

.tour-modal .modal-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.option-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 16px;
}

.option-card:hover {
    border-color: #4a5fbd;
    background: #f8faff;
}

.option-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.option-icon.tour {
    background: linear-gradient(135deg, #4a5fbd, #3b4da8);
}

.option-icon.ai {
    background: linear-gradient(135deg, #ff8c00, #e07c00);
}

.option-content h3 {
    font-size: 18px;
    color: #212529;
    margin-bottom: 6px;
    font-weight: 600;
    margin-top: 0px;
}

.option-content p {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 0px;
}

.tour-modal .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.tour-modal .modal-close:hover {
    background: #f8f9fa;
}

/* Tour Overlay */
.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    z-index: 3000;
}

.tour-overlay.active {
    display: block;
}

.tour-spotlight {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-width: 360px;
    border: 2px solid #4a5fbd;
    z-index: 3100;
}

.tour-content h3 {
    color: #212529;
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}

.tour-content p {
    color: #6c757d;
    margin-bottom: 24px;
    line-height: 1.5;
    font-size: 14px;
}

.tour-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tour-progress {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.tour-buttons {
    display: flex;
    gap: 12px;
}

.tour-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 14px;
}

.tour-btn.secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.tour-btn.primary {
    background: #4a5fbd;
    color: white;
}

.tour-btn:hover {
    transform: translateY(-1px);
}

.academic-period {
    /*padding: 0 20px;*/
    margin-top: 24px;
    margin-bottom: 24px;
}

/* Tour Highlighting Styles */
.tour-highlight {
    background: rgba(255, 140, 0, 0.25) !important;
    border: 3px solid #ff8c00 !important;
    border-radius: 8px !important;
    box-shadow:
        0 0 0 3px rgba(255, 140, 0, 0.3),
        0 0 30px rgba(255, 140, 0, 0.6) !important;
    transform: scale(1.05) !important;
    transition: all 0.4s ease !important;
    position: relative !important;
    z-index: 3200 !important;
}

.nav-item.tour-highlight {
    background: rgba(255, 255, 255, 0.4) !important;
    border: 3px solid #ff8c00 !important;
    box-shadow:
        0 0 0 3px rgba(255, 140, 0, 0.4),
        0 0 30px rgba(255, 140, 0, 0.7),
        inset 0 0 20px rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.08) !important;
    color: white !important;
}

.academic-period.tour-highlight {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 3px solid #ff8c00 !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin: -5px !important;
    box-shadow:
        0 0 0 3px rgba(255, 140, 0, 0.3),
        0 0 30px rgba(255, 140, 0, 0.6) !important;
}

.user-avatar.tour-highlight {
    border: 4px solid #ff8c00 !important;
    box-shadow:
        0 0 0 3px rgba(255, 140, 0, 0.4),
        0 0 30px rgba(255, 140, 0, 0.8) !important;
    transform: scale(1.2) !important;
}

.site-content .side_navbar,
.site-content .nua-sidebar {
    position: absolute;
    z-index: unset;
}

/* Custom  Dropdown Menu - NEW */
.dropdown-menu-n {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    z-index: 1000;
    padding: 8px 0;
    animation: dropdownFadeIn 0.2s ease-out;
}

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

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header-n {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.user-org {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.3;
}

.dropdown-divider-n {
    height: 1px;
    background: #f3f4f6;
    margin: 8px 0;
}

.dropdown-content-n {
    padding: 8px 0;
}

.dropdown-item-n {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    text-decoration: none !important;
    color: #374151;
    transition: all 0.2s;
    position: relative;
}

.dropdown-item-n:hover {
    background: #f9fafb;
    color: #1f2937;
}

.item-icon-n {
    width: 16px;
    height: 16px;
    color: #6b7280;
    flex-shrink: 0;
}

.dropdown-item-n span {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.chevron-right-n {
    width: 14px;
    height: 14px;
    color: #9ca3af;
    opacity: 0;
    transition: opacity 0.2s;
}

.dropdown-item-n:hover .chevron-right-n {
    opacity: 1;
}

.logout-item-n {
    color: #dc2626;
}

.logout-item-n:hover {
    background: #fef2f2;
    color: #dc2626;
}

.logout-item-n .item-icon-n {
    color: #dc2626;
}

/* End Custom  Dropdown Menu - NEW */

/*.sidebar {
    position: static !important;
}

.site-header {
    position: static !important;
    z-index: unset !important;
}*/

.mobile-nav-item:visited {
    color: #FFF !important;
}

.period-btn option {
    color: #000;
}

.period-btn option:hover {
    color: #FFF;
}

.breadcrumb-link {
    color: var(--primary-color) !important;
    text-decoration: none !important;
}

.breadcrumb-link:hover {
    color: var(--blue-gradient-end) !important;
}

.btn-orange {
    color: white !important;
}

.summary-row:last-child {
    margin-bottom: 16px;
}

.breadcrumb {
    padding: 12px 24px !important;
    background-color: white !important;
    display: flex;
    justify-content: space-between;
}

.btn {
    display: flex;
    border-radius: 6px;
    padding: 10px 16px;
    border: 1px solid transparent;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.btn-secondary {
    background-color: #f3f4f6 !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
}

/*.btn.btn-sm {
    font-size: 12px !important;
}*/

.btn-secondary:hover {
    background: #e5e7eb !important;
    border-color: #9ca3af !important;
}

.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.objective-card-actions .btn-primary {
    border: 1px solid #1a73e8 !important;
    background: #1a73e8 !important;
}

.objective-card-actions .btn {
    border-radius: 4px !important;
}

.btn.btn-primary {
    text-transform: none;
    background-color: var(--primary-color);
}

.php-content-iframe {
    position: relative;
    z-index: 1;
    contain: layout style;
    /*overflow: auto;*/
    max-height: 400px;
    max-width: 80%;
}

/*  Pagination design  */

.paginations {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.paginations-btn {
    padding: 12px 16px;
    border: none;
    background: white;
    color: #64748b;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paginations-btn:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.paginations-btn.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.paginations-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.paginations-btn:disabled:hover {
    background: white;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.paginations-ellipsis {
    padding: 12px 8px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    font-weight: 500;
}

.paginations-info {
    text-align: center;
    margin-top: 20px;
    color: #64748b;
    font-size: 14px;
}

.jump-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.jump-input {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    width: 80px;
    text-align: center;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.jump-input:focus {
    outline: none;
    border-color: #667eea;
}

.jump-btn {
    padding: 8px 16px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.jump-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

@media (max-width: 640px) {
    .paginations {
        gap: 4px;
    }

    .paginations-btn {
        min-width: 36px;
        height: 36px;
        padding: 8px 12px;
        font-size: 12px;
    }
}

/*  End pagination  */

.logo img {
    max-width: fit-content;
}

.messages-table tr.unread {
    background: #f8f9ff !important;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.messages-actions a:hover,
.messages-actions a:focus {
    text-decoration: none;
}

.tab-contents {
    display: none;
}

.tab-contents.active {
    display: block;
}

th .icon-btn,
.sortedTableFooter .icon-btn {
    background: none;
    border: none;
    display: inline;
    align-items: center;
    justify-content: center;
    padding: 4px;
    cursor: pointer;
    color: var(--text-secondary);
}

.table>:not(:first-child) {
    border-top: unset;
}

.messages-table th:hover {
    background: #f1f3f4 !important;
}

.messages-container .form-section {
    padding: unset;
}

.form-group label {
    font-weight: 300;
    text-transform: unset;
    letter-spacing: unset;
}

.messages-container .btn {
    display: flex;
}

.section-header p {
    font-weight: normal;
}

.stat-title {
    display: flex;
}

.stat-footer {
    display: flex;
}

.stat-footer em {
    padding-right: 5px;
}

.messages-table td {
    padding: 16px 20px !important;
    border-bottom: 1px solid #f1f3f4 !important;
}

.text-sm {
    font-size: 1.4rem;
    line-height: 2rem;
}

.py-2 {
    padding-top: .8rem !important;
    padding-bottom: .8rem !important;
}

.notifications .msg {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background 0.15s;
    margin-bottom: 0.25rem;
    text-decoration: none;
    color: #222;
}

.notifications .msg:last-child {
    margin-bottom: 0;
}

.notifications .msg:hover {
    background: #f3f4f6;
}

.notifications .msg header {
    font-weight: 500;
    color: #22223b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
}

.notifications .msg footer {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.notifications .msg .preview {
    font-size: 0.8rem;
    color: #4b5563;
    margin-top: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-section {
    max-width: 850px;
}

.modal-title {
    color: #454545;
}

.table-container {
    overflow-x: auto;
    padding: 0 24px 24px;
}

.sortedTableFooter .ef-grid-clear-filter .btn {
    right: 0px !important;
    top: -9px !important;
}

.test-card {
    cursor: unset;
}

/* todo: need to remove for new design modals */
/*.modal {
    background: inherit;
    border-radius: inherit;
    max-width: inherit;
    width: 100%;
    max-height: inherit;
    overflow-y: auto;
    box-shadow: 0 10px 40px #0000002e;
    padding: inherit;
}*/

.btn {
    display: flex;
    font-size: 14px;
}

.class-name-cell {
    align-items: unset;
    display: block;
}

.class-name {
    font-size: 24px;
}

.classes-container .btn,
.classes-header .btn {
    display: flex;
}

.classes-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: rgb(248, 250, 252);
    border-top: 1px solid rgb(229, 231, 235);
}

.page-number {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    color: #374151;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.classes-footer .page-btn {
    width: auto;
}

.classes-footer .pagination {
    display: flex;
}

/* Basic text truncation with ellipsis */
.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Truncate with specific max width */
.text-truncate-sm {
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-truncate-md {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-truncate-lg {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-truncate-xl {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Multi-line truncation (webkit browsers only) */
.text-truncate-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-truncate-3-lines {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive truncation */
.text-truncate-responsive {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

@media (max-width: 768px) {
    .text-truncate-responsive {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .text-truncate-responsive {
        max-width: 80px;
    }
}

/* Truncation with tooltip on hover */
.text-truncate-tooltip {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: help;
    position: relative;
}

.text-truncate-tooltip:hover::after {
    content: attr(data-full-text);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.text-truncate-tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: 117%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 1000;
}

/* Multi-line text wrapping to show complete title */
.text-wrap {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Multi-line with specific max width */
.text-wrap-sm {
    max-width: 100px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
}

.text-wrap-md {
    max-width: 150px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
}

.text-wrap-lg {
    max-width: 200px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
}

/* Multi-line with height constraint (shows complete text within limits) */
.text-wrap-constrained {
    max-width: 150px;
    max-height: 60px;
    /* Allows roughly 3 lines */
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    overflow: hidden;
}

/* Multi-line with scrollable overflow */
.text-wrap-scroll {
    max-width: 150px;
    max-height: 60px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom scrollbar for webkit browsers */
.text-wrap-scroll::-webkit-scrollbar {
    width: 3px;
}

.text-wrap-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.text-wrap-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.text-wrap-scroll::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Expandable text (click to show/hide full text) */
.text-expandable {
    max-width: 150px;
    line-height: 1.4;
    cursor: pointer;
    position: relative;
}

.text-expandable.collapsed {
    max-height: 40px;
    /* Roughly 2 lines */
    overflow: hidden;
    white-space: normal;
    word-wrap: break-word;
}

.text-expandable.collapsed::after {
    content: '...more';
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    color: #007bff;
    font-size: 11px;
    padding-left: 10px;
}

.text-expandable.expanded {
    max-height: none;
    white-space: normal;
    word-wrap: break-word;
}

.text-expandable.expanded::after {
    content: ' less';
    color: #007bff;
    font-size: 11px;
}

/* For table cells specifically */
.table-cell-wrap {
    max-width: 150px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    padding: 8px;
    vertical-align: top;
}

/* Responsive multi-line wrapping */
.text-wrap-responsive {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .text-wrap-responsive {
        max-width: 200px;
    }
}

@media (max-width: 767px) {
    .text-wrap-responsive {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .text-wrap-responsive {
        max-width: 80px;
    }
}

.class-description {
    font-size: 16px;
    margin-bottom: 12px;
}

.class-code-section {
    margin-bottom: 0px;
}

.class-card-footer {
    padding-top: 12px;
}

.modal-overlay {
    display: none;
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay .modal {
    position: relative;
    height: auto;
    display: flex;
}

.password-toggle {
    right: 0px;
}

.class-name-container .class-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 230px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px #00000026;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    z-index: 100;
    max-height: 380px;
    overflow-y: auto;
}

.ef-dashboard-header .collapse {
    visibility: inherit;
}

.hero-left {
    padding-bottom: 18px;
}

.accordion-button {
    font-size: 14px;
}

.ef-tooltip-toggle {
    padding-left: 5px;
    padding-right: 5px;
}

.dropdown-toggle:not(.ef-content-button, .note-btn) {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    padding: 17px;
}

.efront-form .form-group {
    display: block;
}

.efront-form .control-label {
    position: unset !important;
    transform: unset !important;
    font-size: 14px;
    border-bottom-width: 0px;
    /*text-align: left;*/
}

.efront-form hr {
    margin-top: 20px;
    margin-bottom: 20px;
}

.efront-form .input-group {
    display: flex;
}

.efront-form .input-group-addon,
.efront-form .input-group-btn {
    width: auto;
}

.efront-form .ef-select,
.efront-form .f-select-tags {
    min-height: 45px;
}

.ef-course-contents .dropdown-menu {
    left: auto;
    max-height: 350px;
}

/*.radio-button-group .ef-form-element-full-length {
    text-align: center;
    max-width: 50%;
}*/

.sortedTable .icon-btn {
    display: inherit;
    color: inherit;
}

.efront-form .form-group input {
    appearance: auto;
}

.efront-form .checkbox-inline {
    margin-bottom: 10px;
}

div.ef-block {
    margin-bottom: unset;
}

.modal-body {
    color: unset;
}

.bootbox div.modal-body {
    padding: 25px;
}

.reports-analytics-container .ef-unit-tree .text-right-responsive {
    text-align: justify;
}

.reports-analytics-container .ef-unit-tree .ef-entry-head .handle-placeholder .ef-expand-collapse-handle {
    margin-top: -25%;
}

#ef-modal-body {
    padding: 25px;
}

#ef-modal-body .btn-primary {
    max-width: 30%;
}

#ef-modal-body h4,
#ef-modal-body .h4,
#ef-modal-body h5,
#ef-modal-body .h5,
#ef-modal-body h6,
#ef-modal-body .h6 {
    margin-top: 10px;
    margin-bottom: 10px;
}

#ef-modal-body h4,
#ef-modal-body .h4 {
    font-size: 18px;
}

#live-sessions {
    overflow: unset;
}

#live-sessions small {
    font-size: 100%;
}

#live-sessions .mr-4 {
    padding-left: 10px;
}

.sessions-track.desktop-sessions {
    flex-wrap: unset;
}

.ef-header-tools .dropdown-menu>li>a {
    padding: 1px 9px;
}

.ef-content-tags.ef-content-tags-dashboard-unit {
    margin: 5px 0 10px 54px;
    white-space: normal;
}

.intro-container {
    min-height: 50vh;
}

#conduct_form .form-group {
    flex-direction: row;
}

#ef-toggle-seen-unit {
    display: inline;
}

.stream-topic {
    padding: 15px;
    line-height: 2;
}

.list-group-item {
    padding: 10px !important;
}

.grade-subject-header p {
    margin: 0px;
}

ul.customTabs>li {
    color: unset;
}

ul.customTabs>li.active>a {
    color: #4c6bbe !important;
}

/* Prevent duplicate sortedTableFooter from being visible */
.sortedTableFooter {
    display: none;
}

.ef-form-element {
    max-width: 700px;
}

.ef-form-element-textarea {
    max-width: 100%;
}

.hero-left a,
.hero-left a:visited {
    color: unset;
}

.hero-left a:hover,
.hero-left a:focus {
    color: unset;
}

.hero-left {
    gap: 145px;
}

#ef-toggle-fullscreen {
    background-position: 97%;
    background-size: 24px auto;
    background-repeat: no-repeat;
    background-image: url(/assets/images/ui-904/full-screen-exit-icon.svg);
    padding-right: 30px !important;
    color: #222 !important;
}

.efront-form .ef-duration-radio {
    margin-right: 10px !important;
    margin-top: 10px;
}

.efront-form .ull-right.dropdown-toggle {
    padding: 9px !important;
}

.review-test-container .option-item {
    align-items: flex-start;
}

.intro-card {
    max-width: 1000px;
}

.intro-card h2 {
    font-size: 38px;
}

.intro-card p {
    font-size: 20px;
}

.teacher-library-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px #0000001a;
    overflow: hidden
}

.teacher-library-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.teacher-library-title h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px
}

.teacher-library-title p {
    font-size: 16px;
    opacity: .9;
    margin: 0
}

.teacher-library-actions {
    display: flex;
    gap: 12px
}

.teacher-library-controls {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap
}

.resources-content {
    padding: 24px
}

.resources-header-info {
    margin-bottom: 24px
}

.resources-header-info h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px
}

.resources-header-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0
}

.youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 0
}

.resource-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all .2s;
    box-shadow: 0 2px 8px #0000000d
}

.resource-card:hover {
    box-shadow: 0 8px 24px #0000001f;
    transform: translateY(-2px)
}

.clickable-card {
    cursor: pointer;
    transition: all .2s ease
}

.clickable-card:hover {
    transform: translateY(-4px)
}

.youtube-style-card {
    cursor: pointer;
    transition: all .2s ease;
    border-radius: 12px;
    overflow: hidden;
    background: transparent
}

.youtube-style-card:hover {
    transform: translateY(-2px)
}

.youtube-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    background: #000
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    transition: transform .3s ease
}

.youtube-style-card:hover .thumbnail-image {
    transform: scale(1.05)
}

.duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #000c;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    font-family: monospace
}

.content-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 4px
}

.content-type-badge span {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px
}

.video-badge {
    background: red;
    color: #fff
}

.worksheet-badge {
    background: #ff9800;
    color: #fff
}

.presentation-badge {
    background: #9c27b0;
    color: #fff
}

.interactive-badge {
    background: #4caf50;
    color: #fff
}

.subject-badge {
    background: #ffffffe6;
    color: #333
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #000c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all .3s ease;
    color: #fff
}

.play-overlay.show {
    opacity: 1
}

.play-overlay svg {
    width: 24px;
    height: 24px
}

.youtube-content {
    display: flex;
    gap: 12px;
    padding: 12px 0
}

.youtube-style-card .video-details,
.youtube-style-card .video-title {
    text-align: left
}

.youtube-style-card .video-meta {
    align-items: flex-start;
    text-align: left
}

.youtube-style-card .meta-stats {
    justify-content: flex-start
}

.author-avatar-small {
    width: 36px;
    height: 36px;
    background: #6366f1;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0
}

.video-details {
    flex: 1;
    min-width: 0
}

.video-title {
    font-size: 16px;
    font-weight: 500;
    color: #0f0f0f;
    margin: 0 0 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.video-meta {
    display: flex;
    flex-direction: column;
    gap: 2px
}

.author-name {
    font-size: 14px;
    color: #606060;
    font-weight: 400
}

.meta-stats {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #606060
}

.meta-stats span {
    white-space: nowrap
}

.rating-display {
    color: #ff9800 !important
}

.resource-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden
}

.resource-image {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    transition: transform .3s ease
}

.resource-card:hover .resource-image {
    transform: scale(1.05)
}

.resource-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0006;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease
}

.resource-overlay.show,
.resource-card:hover .resource-overlay {
    opacity: 1
}

.preview-btn {
    background: #fffffff2;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    color: #333 !important;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px #0000001a;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px)
}

.preview-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px #0003;
    color: #1f2937 !important
}

.preview-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0
}

.resource-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px
}

.content-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: capitalize;
    background: #fffffff2;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px #0000001a
}

.content-type-badge.lesson-plan {
    color: #1976d2
}

.content-type-badge.assessment {
    color: #d32f2f
}

.content-type-badge.presentation {
    color: #f57c00
}

.content-type-badge.handout {
    color: #388e3c
}

.content-type-badge.worksheet {
    color: #7b1fa2
}

.content-type-badge.activity {
    color: #0288d1
}

.content-type-badge.project {
    color: #e64a19
}

.content-type-badge.rubric {
    color: #5d4037
}

.resource-content {
    padding: 20px
}

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

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

.resource-grade {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500
}

.resource-rating {
    display: flex;
    align-items: center;
    gap: 6px
}

.resource-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
    line-height: 1.3
}

.resource-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 16px
}

.resource-objectives {
    margin-bottom: 16px
}

.resource-objectives h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px
}

.resource-objectives ul {
    margin: 0;
    padding-left: 16px;
    list-style-type: disc
}

.resource-objectives li {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 4px
}

.more-objectives {
    color: var(--primary-color);
    font-style: italic
}

.resource-stats {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    justify-content: space-between
}

.resource-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    flex: 0 0 auto;
    white-space: nowrap
}

.resource-stats .stat-item svg {
    color: #667eea;
    width: 14px;
    height: 14px;
    flex-shrink: 0
}

.resource-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px
}

.author-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600
}

.author-info {
    display: flex;
    flex-direction: column
}

.author-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 13px
}

.upload-date {
    font-size: 11px;
    color: var(--text-secondary)
}

.resource-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-secondary)
}

.file-type {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500
}

.file-size,
.duration {
    font-weight: 500
}

.resource-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px
}

.resource-tag {
    background: #f1f5f9;
    color: #64748b;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500
}

.more-tags {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500
}

.resource-footer {
    padding: 16px 20px;
    border-top: 1px solid #f1f3f4;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.resource-actions {
    display: flex;
    gap: 8px
}

.action-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center
}

.action-btn:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
    color: var(--primary-color)
}

.action-btn.liked {
    background: #e3f2fd;
    border-color: #1976d2;
    color: #1976d2
}

.action-btn.disliked {
    background: #ffebee;
    border-color: #d32f2f;
    color: #d32f2f
}

.action-btn.favorited {
    background: #fce4ec;
    border-color: #e91e63;
    color: #e91e63
}

.view-btn {
    background: #1a73e8;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 6px
}

.view-btn:hover {
    background: #1557b0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px #1a73e866
}

.no-resources {
    text-align: center;
    padding: 60px 20px;
    color: #666
}

.no-resources-icon {
    margin-bottom: 16px;
    opacity: .3
}

.no-resources h3 {
    margin-bottom: 8px;
    color: #333;
    font-size: 18px
}

.no-resources p {
    color: var(--text-secondary);
    font-size: 14px
}

.teacher-library-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
    background: #f8f9fa
}

@media (max-width: 1200px) {
    .resources-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 20px
    }
}

@media (max-width: 768px) {
    .teacher-library-header {
        flex-direction: column;
        gap: 16px;
        text-align: center
    }

    .teacher-library-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px
    }

    .filter-section {
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px
    }

    .sort-section {
        width: 100%;
        justify-content: space-between
    }

    .resources-grid {
        grid-template-columns: 1fr;
        gap: 16px
    }

    .resource-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px
    }

    .resource-meta {
        width: 100%;
        justify-content: space-between
    }

    .resource-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch
    }

    .resource-actions {
        justify-content: center
    }

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

    .resource-file-info {
        gap: 8px;
        flex-wrap: wrap
    }

    .resource-objectives ul {
        padding-left: 12px
    }
}

.generate-ai-content-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px #0000001a;
    overflow: hidden
}

.generate-ai-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 0;
    overflow: hidden
}

.generate-ai-title h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 6px
}

.generate-ai-title p {
    font-size: 16px;
    opacity: .9;
    margin: 0 0 16px
}

.promo-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 32px;
    border-radius: 0;
    overflow: hidden;
    position: relative
}

.promo-card:after {
    content: "";
    position: absolute;
    top: -30%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, .08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 2
}

.promo-content {
    position: relative;
    z-index: 3;
    flex: 1
}

.promo-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px
}

.promo-content p {
    font-size: 16px;
    opacity: .9;
    margin: 0 0 16px;
    max-width: 500px
}

.promo-image {
    position: relative;
    z-index: 3;
    margin-left: 20px;
    flex-shrink: 0
}

.promo-image img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .2))
}

#redeem-btn {
    display: inline-block;
    background: var(--orange-accent);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none
}

#redeem-btn:hover {
    background: color-mix(in srgb, var(--orange-accent) 90%, black);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px #ff6b3566
}

.content-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 24px;
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-color)
}

.content-stat-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all .2s;
    box-shadow: 0 1px 3px #0000000d
}

.content-stat-card:hover {
    box-shadow: 0 4px 12px #0000001a;
    transform: translateY(-1px)
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #4285f41a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px
}

.coming-soon {
    background: #fbbf24;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px
}

.content-type-badge {
    position: relative !important;
}

/*---------- Content Palyer -----------*/

.preview-content {
    border: none;
    border-radius: 0px;
}

.preview-content {
    margin-top: 0px;
    padding-top: 5px;
    border-top: none;
    border: none !important;
}

/*.content-actions {
  justify-content: end;
  width: 72%;
}*/

@media (max-width: 768px) {
    .content-player-body {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
        overflow: initial !important;
    }
}

.btn-primary {
    background: var(--primary-color) !important;
}

.ef-form-element-file input[type="file"].form-control {
    height: 47px;
}

.ef-datetime-container span.input-group-addon button {
    margin-top: 4px;
}

#ef-record-answer {
    border-color: var(--secondary-color);
}

.btn-group .btn {
    height: 36px;
}

ul.customTabs>li.slider {
    display: none !important;
}

ul.customTabs>li.active {
    border-bottom: 2px solid;
}

.generate-ai-modal-overlay {
  /*height: 90% !important;*/
  align-items: baseline !important;
}

.generate-ai-content-container .filter-select {
  min-width: 250px !important;
}
}

.generate-ai-content-container .filter-select {
  min-width: 250px !important;
}

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

.reports-title {
    flex: 1;
    min-width: 250px;
}

.reports-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reports-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.reports-back-btn:hover {
    transform: translateX(-2px);
}

.reports-back-btn svg {
    width: 16px;
    height: 16px;
}

/*************  Inline classes image upload  *****************/
/* Class card hover effects */
.class-card {
    position: relative;
    transition: transform 0.3s ease;
}

.class-card:hover {
    transform: translateY(-5px);
}

.class-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.class-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.class-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay-content {
    text-align: center;
}

.btn-change-image {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.btn-change-image:hover {
    background: white;
    transform: scale(1.05);
}

/* Modal styles */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.upload-placeholder i {
    font-size: 48px;
    color: #6c757d;
    margin-bottom: 10px;
}

.upload-placeholder p {
    margin: 0 0 5px 0;
    font-weight: 500;
}

.upload-placeholder span {
    color: #6c757d;
    font-size: 12px;
}

.preview-section {
    text-align: center;
}

.image-crop-container {
    max-width: 400px;
    margin: 0 auto 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

#imagePreview {
    max-width: 100%;
    max-height: 300px;
}

.crop-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.upload-progress {
    margin-top: 20px;
}

.progress-text {
    text-align: center;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

/* Responsive design */
@media (max-width: 768px) {
    .class-image {
        height: 150px;
    }
    
    .btn-change-image {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .crop-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .crop-controls .btn {
        width: 100%;
        max-width: 200px;
    }
}

.content-area {
    padding-top: 0px;
}

.breadcrumb {
  padding: 8px 15px;
  margin-bottom: 10px;
}

