/* Nút chat của bạn */
.chat-button {
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

img.hotrokhoahoc {
    position: fixed;
    right: 10px;
    background-color: #007bff;
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s;
}

.group-invite-fab:hover {
    background-color: #0056b3;
}

.group-popup-container {
    position: fixed;
    bottom: 270px;
    right: 60px;
    background: white;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    z-index: 1001;
    width: 400px;
    max-height: 400px;
    overflow-y: auto;
}

.parent-container {
    overflow: visible !important;
}

div#carousel-item-main {
    background-color: white;
}

body#page-site-index {
    background: #EFF9FF !important;
}

i.fa.fa-lock.text-muted {
    text-align: right !important;
    padding-left: 70%;
    font-size: 15px;
}

i.fa-solid.fa-lock-open.text-success {
    text-align: right !important;
    padding-left: 90%;
    font-size: 15px;
}

h5#purchaseModalLabel {
    color: #FF5F7A;
    font-family: "Roboto";
    font-size: 24px;
    font-weight: 700;
}

p#contextModal {
    color: #000;
    font-family: 'ROBOTO';
    font-size: 15px;
    font-weight: 400;
}

button#submitActiveModal {
    padding: 12px;
    width: 70%;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card--title {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.btn.btn-outline-primary {
    background-color: #fff;
    border: 1px solid #ff9999;
    padding: 8px 9px;
    color: #ff6666;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.mt-3.ml-auto.d-inline-block {
    display: inline-block;
    text-decoration: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-color: #ff9999;
}

.btn.btn-outline-primary:hover {
    background-color: #ff9999;
    color: #fff;
    border-color: #ff6666;
}

p.mb-1.fw-bold {
    color: #414042;
    font-family: Roboto;
    font-size: 16px;
    font-style: normal;
    font-weight: 600 !important;
    line-height: normal;
}

a.tryLeaningHt {
    color: #FFFFFF;
    font-weight: 700;
    font-family: Roboto;
}

a.btn-lg.btn-primary.w-100.h-100.py-3.mt-3 {
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    background: #233B74;
    outline: none;
    box-shadow: none;
}

button.btn-lg.btn-danger.py-3.w-100 {
    outline: none;
    box-shadow: none;
    font-weight: bold;
}

/* Nút FAB (Fixed Action Button) */
.fab {
    position: fixed;
    bottom: 150px;
    right: 5px;
    width: 50px;
    height: 50px;
    background-color: #d41e25;
    color: white;
    border-radius: 50%;
    border: none;
    font-size: 15px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: bottom 0.3s ease, right 0.3s ease;
}

.fab-menu {
    position: fixed;
    bottom: 100px;
    right: 20px;
    border-radius: 10px;
    padding: 15px;
    width: 50%;
    display: none;
    z-index: 999;
}

.fab-menu.show {
    display: block;
}

.fab-menu a.btn-lg {
    display: block;
    text-align: center;
}

.fab:hover {
    animation: bounce 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(35, 59, 116, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(35, 59, 116, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(35, 59, 116, 0);
    }
}

.fab::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(35, 59, 116, 0.4);
    animation: ripple 1.5s infinite;
    z-index: -1;
}

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

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.modal-content {
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.modal.fade .modal-dialog {
    transform: translate(0, 50px);
}

.modal.show .modal-dialog {
    transform: translate(0, 0);
}

.modal-header {
    border-bottom: none;
    padding: 20px 30px;
    position: relative;
}

.modal-title {
    font-size: 24px;
    color: #333;
    text-align: center;
    width: 100%;
}

.modal-header .close {
    font-size: 30px;
    position: absolute;
    right: 20px;
    top: 15px;
    color: #666;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-body {
    padding: 20px 40px;
}

.modal-body p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.modal-body p small {
    font-size: 14px;
    display: block;
    margin-top: 5px;
}

.modal-body p small a {
    color: #d41e25;
    padding: 2px 8px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.modal-body p small a:hover {
    background-color: #e9ecef;
}

#couponForm {
    margin-top: 20px;
}

#coupon_code {
    font-size: 18px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ced4da !important;
    box-shadow: none !important;
    outline: none !important;
    text-align: center;
    height: 50px;
    transition: border-color 0.3s ease;
}

#coupon_code:focus {
    border-color: #FFFFFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
    outline: none;
}

.g-recaptcha {
    margin: 20px auto !important;
    display: flex;
    justify-content: center;
}

#submitActiveModal {
    font-size: 15px;
    background-color: #3333ff;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#submitActiveModal:hover {
    background-color: #3333ff;
    transform: translateY(-2px);
}

#coupon-error {
    font-size: 14px;
    padding: 10px;
    border-radius: 8px;
}

.col-12.col-lg-7.py-3.hide-scrollbar {
    height: 80vh;
}

.card-body .btn-danger {
    border: none !important;
    box-shadow: none !important;
}

.card-body .btn-danger:focus {
    outline: none !important;
    box-shadow: none !important;
}

.btn-outline-primary.active,
.btn-outline-primary:active,
.btn-outline-primary:focus {
    border-color: #ffffff !important;
    box-shadow: none !important;
}

.popover-region-toggle *,
.popover-region-toggle:focus,
.popover-region-toggle:focus-visible,
.popover-region-toggle *:focus {
    outline: none !important;
    box-shadow: none !important;
}

#user-menu-toggle:focus,
#user-menu-toggle:focus-visible,
.dropdown-item:focus,
.dropdown-item:focus-visible,
.carousel-navigation-link:focus,
.carousel-navigation-link:focus-visible,
.btn:focus,
.btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.col-9 a:focus,
.col-9 a:focus-visible,
.col-9 a:active {
    outline: none !important;
    box-shadow: none !important;
}

.hide-scrollbar {
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.card.mb-3.p-3.text-center.hidden.d-lg-block {
    height: 400px;
}

#fabmenuRes i {
    margin-right: 8px;
}

#fabmenuRes:hover {
    background-color: #c82333;
    transition: background-color 0.3s ease;
}

.popover-region-toggle.nav-link.icon-no-margin {
    outline: none !important;
    box-shadow: none !important;
}

/* Ẩn Tập tin riêng tư */
.usermenu .dropdown-menu a[href*="user/files.php"] {
    display: none !important;
}

/* Ẩn Điểm */
.usermenu .dropdown-menu a[href*="grade/report"] {
    display: none !important;
}

/* Ẩn Lịch */
.usermenu .dropdown-menu a[href*="calendar"] {
    display: none !important;
}

/* Ẩn Báo cáo */
.usermenu .dropdown-menu a[href*="report"] {
    display: none !important;
}

a[href="https://topimaster.fexitech.com/user/preferences.php"] {
    display: none !important;
}

#accessibilitysettings-control {
    display: none !important;
}

h6.fw-bold.mb-1 {
    margin-left: 20px;
}

.card-wrapper {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100px;
    left: 0;
    z-index: 1000;
    background: white;
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
}

.title_sub {
    color: #FFFFFF;
    font-size: 20px;
    font-weight: bold;
    margin-left: 30px;
}

.card-custom {
    background-color: #ff5d7c;
    border-radius: 20px;
    color: white;
    padding: 20px 20px;
    display: flex;
    align-items: center;
}

.arrow-icon {
    margin-left: 200px;
}

.icon-text {
    display: flex;
    align-items: center;
}

.icon-text img {
    width: 36px;
    height: 36px;
    margin-right: 12px;
}

.arrow-icon {
    font-size: 1.5rem;
    color: white;
}

.text-small {
    font-size: 0.9rem;
    opacity: 0.9;
}

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

article.card.mb-3.bg-danger.text-white {
    border-radius: 20px;
}

/* Chỉ đổi màu, không dịch chuyển */
.card {
    transition: background-color 0.3s ease;
}

.card:hover {
    transform: none !important;
}

.custom-footer-space {
    padding-bottom: 40px !important;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 4px solid #ccc;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

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

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

a[href*="my/courses.php"] {
    display: none !important;
}

.submenu.p-3 {
    border-radius: 20px;
}

/* Bỏ viền focus/red border cho nút toggler */
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

.icon-text {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.icon-text img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.text-block {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.text-small {
    font-size: 16px;
    color: #ffffff;
    font-weight: bold;
}

.text-bold {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
}

.arrow-icon {
    font-size: 18px;
    color: #ffffff;
    margin-left: 100px;
    flex-shrink: 0;
    font-weight: bold;
    text-decoration: none;
}

button.active.py-3.w-100.btn.btn-outline-primary.btn-lg {
    font-size: 22px;
    font-weight: 500;
}

button.py-3.w-100.btn.btn-outline-primary.btn-lg {
    font-size: 22px;
    font-weight: 400;
}

.logo_lms.hide {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

#chat-launcher {
    position: fixed;
    background: #2684ff;
    color: white;
    width: 50px;
    height: 50px;
    font-size: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

body#page-site-index,
nav.navbar.fixed-top.navbar-light.navbar-expand {
    background-image: url('/theme/moove/pix/Background.png') !important;
    background-repeat: no-repeat !important;
    background-position: center bottom !important;
    background-size: cover !important;
    background-attachment: fixed !important;
}
#carousel-item-main {
    background-color: #fff;
}

.container-progess{
    border: 2px solid #C94648 !important;
    background: #FDEFEB !important;
    border-radius: 25px !important;
}

#zalo-widget-container {
    position: fixed;
    bottom: 160px;
    left: 30px;
    z-index: 9999;
}

.zalo-chat-widget {
    bottom: 100px !important;
    right: 15px !important;
}

.ghidanhkd{
    float: right;
}

.continue-icon{
    margin-left: 0 !important;
}

.cart-custom-title{
    max-width: calc(85% - 50px);
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cart-custom-text{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.custom-footer-space {
    margin-top: 10px;
}

@media (max-width: 991.98px) {
    i.fa-solid.fa-lock-open.text-success,
    i.fa.fa-lock.text-muted.show-toast-btn {
        text-align: right !important;
        padding-left: 98% !important;
        padding-top: 10px !important;
        font-size: 15px !important;
    }

    article.card.px-2.py-1.mb-3 {
        padding: 0.5rem;
        border-radius: 12px;
    }

    .col-12.col-lg-7.py-3.hide-scrollbar.custom-footer-space {
        padding-bottom: 50px !important;
    }

    #eventListMobile a.btn {
        display: inline-block;
        position: relative;
        z-index: 1;
        box-sizing: border-box;
        transition: none !important;
        color: #ffffff;
    }

    div#eventListMobile {
        display: none;
        position: fixed;
        right: 65px;
        bottom: 145px;
        width: 70%;
        z-index: 1061;
    }

    #eventListMobile {
        box-sizing: border-box;
    }

    .zalo-chat-widget {
        display: none !important;
    }

    h5.card-title.mt-2 {
        color: black;
        margin-top: 17px !important;
    }

    .btn-outline-primary {
        background-color: #fff !important;
    }

    .btn-outline-primary.active,
    .btn-outline-primary:active,
    .btn-outline-primary:focus {
        color: #ff6666 !important;
    }

    .fab {
        bottom: 180px;
        right: 10px;
        width: 50px;
        height: 50px;
    }

    /* @supports (-webkit-touch-callout: none) {
        .fab {
            bottom: 120px;
            right: 10px;
            width: 50px;
            height: 50px;
        }
    } */

    button#eventToggleBtn {
        position: fixed !important;
        bottom: 120px !important;
        right: 10px !important;
        top: unset !important;
        z-index: 1050 !important;
        background: #f6657c !important;
    }

    .fab-menu {
        position: fixed;
        bottom: 190px;
        right: 50px;
        border-radius: 10px;
        padding: 15px;
        width: 215px;
        display: none;
        z-index: 999;
    }

    #fabmenuRes {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 185px;
        text-align: center;
        border: 1px solid #ffffff;
    }

    .search-form {
        max-width: 1400px !important;
        padding: 5px 20px !important;
    }

    .accordion-scroll {
        /* overflow-y: auto; */
        padding-right: 5px;
        padding-bottom: 80px;
        -ms-overflow-style: none;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        overscroll-behavior: contain;
    }

    .accordion-scroll::-webkit-scrollbar {
        display: none;
    }

    /* @supports (height: 100dvh) {
        .accordion-scroll {
            max-height: calc(100dvh - 120px);
        }
    } */

    img.img-fluid.lazy {
        height: 80px;
    }


    img.hotrokhoahoc {
        bottom: 240px;
    }

    .fab::after {
        bottom: 0px;
        right: 0px;
    }

    .group-popup-container {
        width: 70% !important;
        justify-content: center;
    }

    .start-up,
    .learned {
        display: none !important;
    }

    .responsive-image {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }

    .modal-backdrop.show{
        z-index: 1030;
    }


    #chat-launcher{
        top: unset !important;
        right: 10px !important;
        bottom: 60px !important;
        font-size: 20px !important;
        display: block !important;
    }

    button#eventToggleBtn {
        position: fixed;
        width: 50px;
        height: 50px !important;
        z-index: 1050;
        background: #f6657c !important;
    }

    .primary-navigation, .usertour{
        display: none !important;
    }

    .sticky-top {
        position: static;
    }

    #navbar {
        position: fixed;
        bottom: 0;
        top: unset !important;
        z-index: 10;
        padding: 0 !important;
        background-color: #ffffff;
    }

    .fa-solid.fa-magnifying-glass{
        color: red;
    }

    #navbar .btn {
        border-radius: 0;
        border: none;
        height: 100%;
        font-size: 13px !important;
    }

    #navbar .btn.active {
        color: #f6657c;
        font-weight: bold;
    }

    .logo_lms {
        display: none !important;
    }

    .navbar-expand .navbar-toggler{
        display: inline-block !important;
    }

    #chatbox {
        position: fixed;
        bottom: 85px;
        right: 63px;
        width: 70%;
        background: white;
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
        font-family: sans-serif;
        z-index: 9998;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    #chatbot-widget {
        position: fixed;
        bottom: 90px;
        right: 20px;
        width: 360px;
        border: 1px solid #ccc;
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
        font-family: sans-serif;
        z-index: 9998;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }

    .chat-header {
        background: #007bff;
        color: white;
        padding: 10px;
        font-weight: bold;
    }

    .chat-body {
        max-height: 300px;
        overflow-y: auto;
        padding: 10px;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .chat-msg {
        padding: 10px;
        border-radius: 8px;
        max-width: 80%;
    }

    .chat-msg.bot {
        background: #f1f1f1;
        align-self: flex-start;
    }

    .chat-msg.user {
        background: #d0e7ff;
        align-self: flex-end;
    }

    .chat-options button {
        margin: 5px 5px 0 0;
        padding: 8px 12px;
        border: none;
        background: #e9e9e9;
        border-radius: 5px;
        cursor: pointer;
    }

    .chat-input {
        display: flex;
        border-top: 1px solid #ddd;
    }

    .chat-input input {
        flex: 1;
        border: none;
        padding: 10px;
    }

    .chat-input button {
        background: #007bff;
        color: white;
        border: none;
        padding: 10px 14px;
        cursor: pointer;
    }

    #chat-launcher {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: #2684ff;
        color: white;
        width: 50px;
        height: 50px;
        font-size: 24px;
        border-radius: 50%;
        text-align: center;
        line-height: 50px;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        z-index: 9999;
    }

    .chat-header {
        display: flex;
        align-items: center;
        padding: 10px;
        background: #007bff;
        color: white;
    }

    .chat-header .avatar {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        margin-right: 10px;
    }

    .bot-name {
        font-weight: bold;
    }

    .chat-close {
        margin-left: auto;
        cursor: pointer;
    }

    .chat-body {
        padding: 10px;
        max-height: 300px;
        overflow-y: auto;
    }

    .msg {
        margin: 5px 0;
        padding: 10px;
        border-radius: 8px;
        background: #f1f1f1;
    }

    .msg.bot {
        background: #f0f0f0;
    }

    .quick-buttons button {
        margin: 5px 5px 0 0;
        padding: 6px 12px;
        border: none;
        background: #eee;
        border-radius: 20px;
        cursor: pointer;
    }

    .chat-footer {
        display: flex;
        border-top: 1px solid #ddd;
    }

    .chat-footer input {
        flex: 1;
        padding: 10px;
        border: none;
    }

    .chat-footer button {
        background: #007bff;
        color: white;
        border: none;
        padding: 10px 12px;
        cursor: pointer;
    }

    .powered {
        text-align: center;
        font-size: 12px;
        padding: 6px;
        color: #888;
        background: #f9f9f9;
    }

    .card-title{
        font-size: 1rem !important;
    }
}

@media (min-width: 992px) and (max-width: 1439.98px) {
    .modal-content.p-3{
            min-width: 650px;
    }

     .group-invite-fab:hover {
        background-color: #0056b3;
    }

    .group-popup-container {
        position: fixed;
        bottom: 180px;
        right: 72px;
        background: white;
        border: 1px solid #ccc;
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.25);
        z-index: 1001;
        width: 400px;
        max-height: 400px;
        overflow-y: auto;
        justify-content: center;
    }

    .parent-container {
        overflow: visible !important;
    }

    .circle {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        border: 2px solid #D5DCE5;
        color: black;
        font-size: 15px;
    }

    button.active.py-3.w-100.btn.btn-outline-primary.btn-lg {
        font-size: 1.3rem !important;
        font-weight: 600;
        font-family: Poppins, sans-serif;
    }

    button.py-3.w-100.btn.btn-outline-primary.btn-lg {
        font-size: 1.3rem;
        font-weight: 500;
        font-family: Poppins, sans-serif;
    }


    p.mb-2 {
        font-size: 15px;
    }

    h5.card-title.text-dark.fw-bold {
        color: #343a40 !important;
        font-size: 18px;
    }

    #chat-toggle-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        background-color: #2684ff;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        z-index: 9999;
    }

    #chatbot-widget {
        position: fixed;
        bottom: 90px;
        right: 20px;
        width: 360px;
        border: 1px solid #ccc;
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
        font-family: sans-serif;
        z-index: 9998;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }

    .chat-header {
        background: #007bff;
        color: white;
        padding: 10px;
        font-weight: bold;
    }

    .chat-body {
        max-height: 300px;
        overflow-y: auto;
        padding: 10px;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .chat-msg {
        padding: 10px;
        border-radius: 8px;
        max-width: 80%;
    }

    .chat-msg.bot {
        background: #f1f1f1;
        align-self: flex-start;
    }

    .chat-msg.user {
        background: #d0e7ff;
        align-self: flex-end;
    }

    .chat-options button {
        margin: 5px 5px 0 0;
        padding: 8px 12px;
        border: none;
        background: #e9e9e9;
        border-radius: 5px;
        cursor: pointer;
    }

    .chat-input {
        display: flex;
        border-top: 1px solid #ddd;
    }

    .chat-input input {
        flex: 1;
        border: none;
        padding: 10px;
    }

    .chat-input button {
        background: #007bff;
        color: white;
        border: none;
        padding: 10px 14px;
        cursor: pointer;
    }

    #chat-launcher {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: #2684ff;
        color: white;
        width: 50px;
        height: 50px;
        font-size: 24px;
        border-radius: 50%;
        text-align: center;
        line-height: 50px;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        z-index: 9999;
    }

    #chatbox {
        position: fixed;
        bottom: 80px;
        right: 20px;
        width: 360px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
        font-family: sans-serif;
        z-index: 9998;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .chat-header {
        display: flex;
        align-items: center;
        padding: 10px;
        background: #007bff;
        color: white;
    }

    .chat-header .avatar {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        margin-right: 10px;
    }

    .bot-name {
        font-weight: bold;
    }

    .chat-close {
        margin-left: auto;
        cursor: pointer;
    }

    .chat-body {
        padding: 10px;
        max-height: 300px;
        overflow-y: auto;
    }

    .msg {
        margin: 5px 0;
        padding: 10px;
        border-radius: 8px;
        background: #f1f1f1;
    }

    .msg.bot {
        background: #f0f0f0;
    }

    .quick-buttons button {
        margin: 5px 5px 0 0;
        padding: 6px 12px;
        border: none;
        background: #eee;
        border-radius: 20px;
        cursor: pointer;
    }

    .chat-footer {
        display: flex;
        border-top: 1px solid #ddd;
    }

    .chat-footer input {
        flex: 1;
        padding: 10px;
        border: none;
    }

    .chat-footer button {
        background: #007bff;
        color: white;
        border: none;
        padding: 10px 12px;
        cursor: pointer;
    }

    .powered {
        text-align: center;
        font-size: 12px;
        padding: 6px;
        color: #888;
        background: #f9f9f9;
    }

    @keyframes blink {
        0% {
            opacity: 1;
        }

        50% {
            opacity: 0.4;
        }

        100% {
            opacity: 1;
        }
    }

    .msg.bot:contains("Đang phản hồi") {
        animation: blink 1s infinite;
    }

    .avatar-emoji {
        font-size: 28px;
        width: 32px;
        height: 32px;
        text-align: center;
        line-height: 32px;
        border-radius: 50%;
        background-color: #e1ecf4;
    }

    img.img-fluid.border-radius.responsive-image {
        width: 120px;
        height: 120px;
    }

    #chatbox {
        right: 75px !important;
    }

    #chat-launcher {
        bottom: 40px !important;
        right: 20px !important;
    }

    i.fa.fa-headphones.ai-convo-item {
        margin-left: -26px;
    }

    .search-form {
        max-width: 1400px !important;
        padding: 5px 20px !important;
    }

    .accordion-scroll {
        max-height: calc(112.5vh - 120px);
        overflow-y: auto;
        padding-right: 5px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .accordion-scroll::-webkit-scrollbar {
        display: none;
    }

    .search-input::placeholder {
        color: #000 !important;
        opacity: 1;
    }

    i.fa-solid.fa-magnifying-glass {
        width: 25px;
        font-size: 20px;
        color: red;
    }

    img.img-fluid.border-radius.responsive-image {
        width: 100px !important;
        height: 100px !important;
    }

    .card-body h5 {
        font-size: 20px !important;
        color: #C94648;
    }

    button.py-3.w-100.btn.btn-outline-primary.btn-lg {
        font-size: 1.3rem !important;
        font-family: Poppins, sans-serif;
    }

    article.card.px-2.py-1.mb-3 {
        border-radius: 25px;
    }

    p.mb-1.fw-bold {
        font-family: Roboto;
        font-size: 18px !important;
    }

    .text-bold {
        font-size: 18px;
        font-weight: 700;
        color: #ffffff;
        font-family: Inter, sans-serif;
    }

    .col-5.col-lg-3.text-muted {
        white-space: nowrap;
        color: #5c6774;
        font-weight: 700;
    }

    .border-top {
        border-top: 1px solid #fff2f1 !important;
    }

    i.fa-solid.fa-lock-open.text-success,
    i.fa.fa-lock.text-muted.show-toast-btn {
        padding-left: 80% !important;
        padding-top: 35px !important;
        font-size: 15px !important;
    }

    .arrow-icon {
        margin-left: 0;
        font-size: 30px;
    }

    .col-2.d-flex.flex-column.justify-content-center.align-items-end {
        margin-left: 10px;
    }

    .card.mb-2.p-2.text-center.d-none.d-sm-block.mt-2 {
        border-radius: 25px;
    }

    article.card.py-2.text-center {
        border-radius: 25px;
    }

    i.ai-convo-item {
        margin-left: -26px;
    }


    p.mb-1.fw-bold.compltion-success {
        color: #00c259;
        font-weight: bold !important;
    }

    .icon-text img {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .locked-resource {
        opacity: 0.6;
        cursor: not-allowed;
        border-radius: 8px;
    }

    .locked-resource:hover {
        background-color: #f5f5f5;
    }

    h5.card-title {
        color: #C94648;
        font-weight: bold;
    }

    h5.textProgess {
        color: #C94648;
        font-weight: 700;
    }

    .progress {
        margin-left: 50px;
    }

    .progress-bar {
        background-color: #233B74 !important;
    }

    a.btn.btn-outline-primary.event_Lms {
        background: #C94648;
        color: #ffffff;
        font-weight: 700;
        width: 93px;
    }

    .card.mb-2.p-2.text-center.d-none.d-sm-block.mt-2 {
        border: 2px solid #C94648;
        Background: #FDEFEB;
    }

    article.card.py-2.text-center {
        border: 2px solid #C94648;
        Background: #FDEFEB;
    }

    .card-body.event {
        border: 2px solid #C94648;
        border-radius: 25px;
        Background: #FDEFEB;
        font-size: 0.6rem !important;
    }

    .card-custom {
        border: 2px solid #C94648;
        Background: #FDEFEB !important;
    }

    article.card.mb-2 {
        border: 2px solid #C94648;
        border-radius: 20px;
        Background: #FDEFEB !important;
    }

    .card.hidden.d-lg-block {
        border: 2px solid #C94648;
        Background: #FDEFEB;
    }

    nav .btn.btn-outline-primary {
        border-color: #C94648 !important;
        color: #C94648 !important;
    }

    nav .btn.btn-outline-primary:hover {
        background-color: #C94648 !important;
        color: #fff !important;
    }

    nav .btn.btn-outline-primary.active {
        background-color: #C94648 !important;
        border-color: #C94648 !important;
        color: #fff !important;
    }

    .text-small {
        font-size: 20px;
        color: #C94648 !important;
    }

    .text-bold {
        color: #C94648 !important;
        font-size: 15px;
    }

    i.fa-solid.fa-caret-right {
        font-size: 1.2rem !important;
        color: #C94648 !important;
    }

    h5.title_sub.mb-0 {
        color: #C94648;
        font-size: 0.8rem !important;
        margin-left: 6px;
    }

    button.search-button {
        font-weight: bold;
    }


    button.active.py-3.w-100.btn.btn-outline-primary.btn-lg {
        color: #fff !important;
        background: linear-gradient(135deg, #C94648, #E9744D) !important;
    }

    button.py-3.w-100.btn.btn-outline-primary.btn-lg {
        color: #C94648 !important;
        Background: #FDEFEB !important;
    }

    .img-fluid {
        width: 100%;
        height: 140px;
        border-radius: 8px;
    }

    div#purchaseModal {
        padding-right: 15%;
    }

    /* Thanh scrollbar chung */
    ::-webkit-scrollbar {
        width: 3px;
        height: 3px;
    }

    ::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    ::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 10px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

    .course-thumb {
        object-position: center;
    }

    img.hotrokhoahoc {
        bottom: 160px;
        right: 20px;
    }

    .navbar-brand{
        width: 100%;
    }

    .logo_lms {
        width: 88% !important;
        height: 140px !important;
        border-radius: 5px;
        margin-top: 85px;
        position: relative;
        margin-left: 10px;
        z-index: 0;
    }

    #navbar {
        position: unset !important;
        margin-top: 70px !important;
    }

    #page{
        height: max-content;
    }

    .custom-footer-space{
        padding-bottom: 0 !important;
    }

    .buy_course{
        font-size: 0.9rem !important;
    }

    .enter-book{
        font-size: 0.6rem !important;
    }

    .enter-code {
        font-size: 0.8rem !important;
    }

    .icon-text img {
        margin-right: 0px !important;
    }

    .text-small{
        font-size: 0.7rem !important;
    }

    .text-bold{
        font-size: 0.5rem !important;
    }

    .textProgess{
        font-size: 1rem !important;
    }

    .col-4.text-end.percent{
        font-size: 0.5rem;
        padding-left: 0;
        padding-right: 0;
    }

    .process-complete {
        font-size: 0.6rem;
    }

    a.btn-lg.btn-primary.w-100.h-100.py-3.mt-3.hidden.d-lg-block{
        font-size: 1.125rem !important;
    }

    .submenu{
        max-height: 640px;
    }

    .powered {
        text-align: center;
        font-size: 12px;
        padding: 6px;
        color: #888;
        background: #f9f9f9;
    }

    .cart-custom-title{
        width: calc(80% - 40px);
        margin-left: 0px !important;
    }

    .icon-text img {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }
}

@media (min-width: 1200px) and (max-width: 1439.98px) {
    button.active.py-3.w-100.btn.btn-outline-primary.btn-lg,
    button.py-3.w-100.btn.btn-outline-primary.btn-lg{
        font-size: 1.4rem !important;
    }

    .card-body h5{
        font-size: 1.25rem !important
    }

    .card-body.event{
        font-size: 0.75rem !important;
    }

     a.btn.btn-outline-primary.event_Lms {
        width: 115px;
    }

    .logo_lms{
        width: 84% !important;
    }

    .enter-book {
        font-size: 0.8rem !important;
    }

    .enter-code {
        font-size: 1rem !important;
    }

    h5.title_sub.mb-0 {
        font-size: 1.15rem !important;
        margin-left: 15px;
    }

        .icon-text img {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
        margin-right: 7px !important;
    }

    .text-small {
        font-size: 1.15rem !important;
    }

    .text-bold {
        font-size: 0.7rem !important;
    }

    .col-2.d-flex.flex-column.justify-content-center.align-items-end {
        margin-left: 20px;
    }

    .process-complete {
        font-size: 0.8rem;
    }

        .col-4.text-end.percent {
        font-size: 0.8rem;
    }

    .accordion-scroll {
        max-height: calc(113.9vh - 120px);
    }

    .submenu{
        max-height: 600px;
    }
    
    .powered {
        text-align: center;
        font-size: 12px;
        padding: 6px;
        color: #888;
        background: #f9f9f9;
    }

}

@media (min-width: 1440px) {
    .modal-content.p-3{
            min-width: 650px;
            margin-left: -100px;
    }
    
    .group-invite-fab:hover {
        background-color: #0056b3;
    }

    .group-popup-container {
        position: fixed;
        bottom: 184px;
        right: 70px;
        background: white;
        border: 1px solid #ccc;
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.25);
        z-index: 1001;
        width: 400px;
        max-height: 400px;
        overflow-y: auto;
        justify-content: center;
    }

    .parent-container {
        overflow: visible !important;
    }

    .circle {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        border: 2px solid #D5DCE5;
        color: black;
        font-size: 15px;
    }

    button.active.py-3.w-100.btn.btn-outline-primary.btn-lg {
        font-size: 22px !important;
        font-weight: 600;
        font-family: Poppins, sans-serif;
    }

    button.py-3.w-100.btn.btn-outline-primary.btn-lg {
        font-size: 22px;
        font-weight: 500;
        font-family: Poppins, sans-serif;
    }


    p.mb-2 {
        font-size: 15px;
    }

    h5.card-title.text-dark.fw-bold {
        color: #343a40 !important;
        font-size: 18px;
    }

    #chat-toggle-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        background-color: #2684ff;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        z-index: 9999;
    }

    #chatbot-widget {
        position: fixed;
        bottom: 90px;
        right: 20px;
        width: 360px;
        border: 1px solid #ccc;
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
        font-family: sans-serif;
        z-index: 9998;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }

    .chat-header {
        background: #007bff;
        color: white;
        padding: 10px;
        font-weight: bold;
    }

    .chat-body {
        max-height: 300px;
        overflow-y: auto;
        padding: 10px;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .chat-msg {
        padding: 10px;
        border-radius: 8px;
        max-width: 80%;
    }

    .chat-msg.bot {
        background: #f1f1f1;
        align-self: flex-start;
    }

    .chat-msg.user {
        background: #d0e7ff;
        align-self: flex-end;
    }

    .chat-options button {
        margin: 5px 5px 0 0;
        padding: 8px 12px;
        border: none;
        background: #e9e9e9;
        border-radius: 5px;
        cursor: pointer;
    }

    .chat-input {
        display: flex;
        border-top: 1px solid #ddd;
    }

    .chat-input input {
        flex: 1;
        border: none;
        padding: 10px;
    }

    .chat-input button {
        background: #007bff;
        color: white;
        border: none;
        padding: 10px 14px;
        cursor: pointer;
    }

    #chat-launcher {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: #2684ff;
        color: white;
        width: 50px;
        height: 50px;
        font-size: 24px;
        border-radius: 50%;
        text-align: center;
        line-height: 50px;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        z-index: 9999;
    }

    #chatbox {
        position: fixed;
        bottom: 80px;
        right: 20px;
        width: 360px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
        font-family: sans-serif;
        z-index: 9998;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .chat-header {
        display: flex;
        align-items: center;
        padding: 10px;
        background: #007bff;
        color: white;
    }

    .chat-header .avatar {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        margin-right: 10px;
    }

    .bot-name {
        font-weight: bold;
    }

    .chat-close {
        margin-left: auto;
        cursor: pointer;
    }

    .chat-body {
        padding: 10px;
        max-height: 300px;
        overflow-y: auto;
    }

    .msg {
        margin: 5px 0;
        padding: 10px;
        border-radius: 8px;
        background: #f1f1f1;
    }

    .msg.bot {
        background: #f0f0f0;
    }

    .quick-buttons button {
        margin: 5px 5px 0 0;
        padding: 6px 12px;
        border: none;
        background: #eee;
        border-radius: 20px;
        cursor: pointer;
    }

    .chat-footer {
        display: flex;
        border-top: 1px solid #ddd;
    }

    .chat-footer input {
        flex: 1;
        padding: 10px;
        border: none;
    }

    .chat-footer button {
        background: #007bff;
        color: white;
        border: none;
        padding: 10px 12px;
        cursor: pointer;
    }

    .powered {
        text-align: center;
        font-size: 12px;
        padding: 6px;
        color: #888;
        background: #f9f9f9;
    }

    @keyframes blink {
        0% {
            opacity: 1;
        }

        50% {
            opacity: 0.4;
        }

        100% {
            opacity: 1;
        }
    }

    .msg.bot:contains("Đang phản hồi") {
        animation: blink 1s infinite;
    }

    .avatar-emoji {
        font-size: 28px;
        width: 32px;
        height: 32px;
        text-align: center;
        line-height: 32px;
        border-radius: 50%;
        background-color: #e1ecf4;
    }

    img.img-fluid.border-radius.responsive-image {
        width: 120px;
        height: 120px;
    }

    #chatbox {
        right: 74px !important;
    }

    #chat-launcher {
        bottom: 40px !important;
        right: 20px !important;
    }

    i.fa.fa-headphones.ai-convo-item {
        margin-left: -26px;
    }

    .search-form {
        max-width: 1400px !important;
        padding: 5px 20px !important;
    }

    .accordion-scroll {
        max-height: calc(98vh - 120px);
        /* max-height: calc(117vh - 120px); */
        overflow-y: auto;
        padding-right: 5px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .accordion-scroll::-webkit-scrollbar {
        display: none;
    }

    .search-input::placeholder {
        color: #000 !important;
        opacity: 1;
    }

    i.fa-solid.fa-magnifying-glass {
        width: 25px;
        font-size: 20px;
        color: red;
    }

    img.img-fluid.border-radius.responsive-image {
        width: 100px !important;
        height: 100px !important;
    }

    .card-body h5 {
        font-size: 20px !important;
        color: #C94648;
    }

    button.py-3.w-100.btn.btn-outline-primary.btn-lg {
        font-size: 22px !important;
        font-family: Poppins, sans-serif;
    }

    button.active.py-3.w-100.btn.btn-outline-primary.btn-lg {
        font-size: 22px !important;
        font-family: Poppins, sans-serif;
    }

    article.card.px-2.py-1.mb-3 {
        border-radius: 25px;
    }

    p.mb-1.fw-bold {
        font-family: Roboto;
        font-size: 18px !important;
    }

    .text-bold {
        font-size: 18px;
        font-weight: 700;
        color: #ffffff;
        font-family: Inter, sans-serif;
    }

    .col-5.col-lg-3.text-muted {
        white-space: nowrap;
        color: #5c6774;
        font-weight: 700;
    }

    .border-top {
        border-top: 1px solid #fff2f1 !important;
    }

    i.fa-solid.fa-lock-open.text-success,
    i.fa.fa-lock.text-muted.show-toast-btn {
        padding-left: 80% !important;
        padding-top: 35px !important;
        font-size: 15px !important;
    }

    .arrow-icon {
        margin-left: 110px;
        font-size: 30px;
    }

    .col-2.d-flex.flex-column.justify-content-center.align-items-end {
        margin-left: 10px;
    }

    .card.mb-2.p-2.text-center.d-none.d-sm-block.mt-2 {
        border-radius: 25px;
    }

    article.card.py-2.text-center {
        border-radius: 25px;
    }

    i.ai-convo-item {
        margin-left: -26px;
    }


    p.mb-1.fw-bold.compltion-success {
        color: #00c259;
        font-weight: bold !important;
    }

    .icon-text img {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

    .locked-resource {
        opacity: 0.6;
        cursor: not-allowed;
        border-radius: 8px;
    }

    .locked-resource:hover {
        background-color: #f5f5f5;
    }

    h5.card-title {
        color: #C94648;
        font-weight: bold;
    }

    h5.textProgess {
        color: #C94648;
        font-weight: 700;
    }

    .progress {
        margin-left: 50px;
    }

    .progress-bar {
        background-color: #233B74 !important;
    }

    a.btn.btn-outline-primary.event_Lms {
        background: #C94648;
        color: #ffffff;
        font-weight: 700;
        width: 160px;
    }

    .card.mb-2.p-2.text-center.d-none.d-sm-block.mt-2 {
        border: 2px solid #C94648;
        Background: #FDEFEB;
    }

    article.card.py-2.text-center {
        border: 2px solid #C94648;
        Background: #FDEFEB;
    }

    .card-body.event {
        border: 2px solid #C94648;
        border-radius: 25px;
        Background: #FDEFEB;
    }

    .card-custom {
        border: 2px solid #C94648;
        Background: #FDEFEB !important;
    }

    article.card.mb-2 {
        border: 2px solid #C94648;
        border-radius: 20px;
        Background: #FDEFEB !important;
    }

    .card.hidden.d-lg-block {
        border: 2px solid #C94648;
        Background: #FDEFEB;
    }

    nav .btn.btn-outline-primary {
        border-color: #C94648 !important;
        color: #C94648 !important;
    }

    nav .btn.btn-outline-primary:hover {
        background-color: #C94648 !important;
        color: #fff !important;
    }

    nav .btn.btn-outline-primary.active {
        background-color: #C94648 !important;
        border-color: #C94648 !important;
        color: #fff !important;
    }

    .text-small {
        font-size: 20px;
        color: #C94648 !important;
    }

    .text-bold {
        color: #C94648 !important;
        font-size: 15px;
    }

    i.fa-solid.fa-caret-right {
        font-size: 30px;
        color: #C94648 !important;
    }

    h5.title_sub.mb-0 {
        color: #C94648;
    }

    button.search-button {
        font-weight: bold;
    }


    button.active.py-3.w-100.btn.btn-outline-primary.btn-lg {
        color: #fff !important;
        background: linear-gradient(135deg, #C94648, #E9744D) !important;
    }

    button.py-3.w-100.btn.btn-outline-primary.btn-lg {
        color: #C94648 !important;
        Background: #FDEFEB !important;
    }

    .img-fluid {
        width: 100%;
        height: 140px;
        border-radius: 8px;
    }

    div#purchaseModal {
        padding-right: 15%;
    }

    /* Thanh scrollbar chung */
    ::-webkit-scrollbar {
        width: 3px;
        height: 3px;
    }

    ::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    ::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 10px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

    .course-thumb {
        object-position: center;
    }

    img.hotrokhoahoc {
        bottom: 160px;
        right: 20px;
    }

    .logo_lms {
        width: 240px !important;
        height: 140px !important;
        border-radius: 5px;
        margin-top: 85px;
        position: relative;
        margin-left: 23px;
        z-index: 0;
    }

    #navbar {
        position: unset !important;
        margin-top: 70px !important;
    }

    #page{
        height: max-content;
    }

    .custom-footer-space{
        padding-bottom: 0 !important;
    }

    .submenu{
        max-height: 590px;
    }

    .submenu::-webkit-scrollbar {
        width: 6px;
    }
}
