html {
    --clk-color-danger: #ff3e1d;
    --clk-color-success: #71dd37;
    --clk-color-secondary: #8592a3;
    --clk-color-warning: #ffab00;
    --clk-color-info: #03c3ec;
}

.hidden {
    display: none !important;
}

.modal {
    background-color: #00000070 !important;
}
.text-block {
  white-space: pre-wrap;   /* giữ xuống dòng và wrap */
  word-break: break-word;  /* cắt từ dài */
}

.flex-1 {
    flex: 1 1 0%;
}

#alerts {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 10000;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.alert-progress {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: absolute;
    bottom: 0;
    left: 0;
}
/* Thanh chạy bên trong */
.alert-progress::before {
    content: "";
    display: block;
    height: 100%;
    background-color: var(--alert-progress-color);
    animation: decrease 4s linear forwards;
    border-radius: inherit;
}

@keyframes decrease {
    from { width: 100%; }
    to { width: 0%; }
}

audio::-webkit-media-controls-play-button,
    audio::-webkit-media-controls-panel {
    background-color: #f3f3f3;
    color: #f3f3f3;
}

.deep-0 {
    margin-left: 0 !important;
}

.deep-1 {
    margin-left: 1rem !important;
}

.deep-2 {
    margin-left: 2rem !important;
}

.deep-3 {
    margin-left: 3rem !important;
}

.deep-4 {
    margin-left: 4rem !important;
}

.deep-5 {
    margin-left: 5rem !important;
}

.deep-6 {
    margin-left: 6rem !important;
}

.deep-7 {
    margin-left: 7rem !important;
}

.deep-8 {
    margin-left: 8rem !important;
}

.deep-9 {
    margin-left: 9rem !important;
}

.deep-10 {
    margin-left: 10rem !important;
}

.deep-0, .deep-1, .deep-2, .deep-3, .deep-4, .deep-5, .deep-6, .deep-7, .deep-8, .deep-9, .deep-10 {
    border-bottom: solid 1px #ececec;
}

.deep-0:hover, .deep-1:hover, .deep-2:hover, .deep-3:hover, .deep-4:hover, .deep-5:hover, .deep-6:hover, .deep-7:hover, .deep-8:hover, .deep-9:hover, .deep-10:hover {
    color: #655FFF;
}

.icon-auth-language {
    border: solid 1px #655FFF;
}

.icon-auth-language:hover {
    /* background-color: #655FFF; */
    background-image: linear-gradient(180deg, #655FFF 0%, #655FFF 100%);
    color: #fff;
}

.random-pass:hover {
    color: var(--bs-primary);
    text-decoration: underline;
}

p {
    white-space: normal; /* Cho phép xuống dòng */
    word-break: break-word; /* Xuống dòng khi cần */
}

@media only screen and (max-width: 1080px) {
    .lg-mt {
        bottom: -30px !important;
    }
}

@media only screen and (max-width: 850px) {
    .lg-mt {
        bottom: -60px !important;
        z-index: 1;
    }
}

@media only screen and (max-width: 1023px) {
    .table-content-desktop {
        display: none;
    }
}

@media only screen and (min-width: 1024px) {
    .table-content-mobile {
        display: none;
    }
}

@media only screen and (max-width: 1023px) {
    .desktop {
        display: none;
    }
}

@media only screen and (min-width: 1024px) {
    .mobile {
        display: none;
    }
}

.ranking-avatar-container {
    width: 75px;
    height: 75px;
    padding: 4px;
    border-radius: 50%;
    top: -37.5px;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
}

.text-ranking {
    color: #fff;
    font-weight: 700;
    line-height: 21px;
    font-size: 15px;
}

.avatar-top1-gradient {
    background-image: linear-gradient(180deg, #F79D81 0%, #C04566 100%);
}

.avatar-top2-gradient {
    background-image: linear-gradient(88.1deg, #655FFF 5.81%, #D989DC 132.22%, #DC93E8 142.16%);
}

.avatar-top3-gradient {
    background-image: linear-gradient(180deg, #6A68F7 0%, #DC93E8 100%);
}

.top-gradient {
    color: #fff;
    /* width: 30px !important;
    height: 24px !important; */
    border-radius: 50%;
    padding: 2px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-color-top {
    background-color: #181919;
}
.bg-color-top-1 {
    background-color: #FFAA00;
    border: 2px solid #FFCD69;
}
.bg-color-top-2 {
    background-color: #9E9E9E;
    border: 2px solid #DADADA;
}
.bg-color-top-3 {
    background-color: #CE7430;
    border: 2px solid #FF9838;
}

.bg-li-secondary {
    background-color: #F3F6F9;
}

.filter-items:hover {
    color: #000;
}

.ranking-top-container {
    height: 120px;
    background-color: #8c88fa;
    border-radius: 20px;
    margin-top: 80px;
    border: solid 1px #000;
    display: flex;
    position: relative;
    justify-content: space-between;
}

.ranking-top-1-container {
    background-color: #655FFF;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    position: absolute;
    width: 33.33%;
    height: 145px;
    bottom: 0;
    left: 50%;
    transform: translate(-50%);
}

.ranking-number {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: inherit;
    border: 1px solid #fff;
    left: 50%;
    transform: translate(-50%, 0);
    bottom: -10px;
}

.absolute-p {
    position: absolute;
}

.wrap-chosen-fields {
    border: solid 1px #d1d1d1;
    padding: 2px 8px;
    border-radius: 8px;
    position: relative;
}

.wrap-chosen-fields:hover {
    border: solid 1px #000;
    color: #000;
}

.fields-items:hover,
.hover-gray:hover {
    background-color: #eeeeee;
}

.icon-chosen-fields {
    background-color: var(--bs-danger);
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    position: absolute;
    top: -8px;
    right: -8px;
}

.custom-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10000; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (Image) */
.custom-modal-content {
    margin: auto;
    display: block;
    width: 100%;
    max-width: 700px;
}

#preview-attachment-img {
    height: inherit;
    width: auto;
}

/* Add Animation - Zoom in the Modal */
.custom-modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

.nav-tabs .nav-link-pool.active,
.nav-tabs .nav-link-pool.active:focus {
  color: #fff !important;
}

.progress-container {
    display: flex;
    /* gap: 8px; */
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 10px;
    margin-top: 20px;
}

.progress-block {
    flex: 1;
    /* border-radius: 2px; */
    height: 100%;
    position: relative;
}

.indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 27px;
    width: 16px;
    background: #ffffff;
    border: 1px solid #adadaf;
    border-radius: 2px; 
}

.overlay-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 27px;
    width: 16px;
    background-color: #FFFFFF;
    border: 1px solid #ADADAF;
    border-radius: 2px;
    cursor: pointer;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

/* The Close Button */
.custom-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.custom-close:hover,
.custom-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
    .custom-modal-content {
        width: 100%;
    }
    #preview-attachment-img {
        width: 100%;
        height: auto;
    }
}

.opacity-img:hover {opacity: 0.7;}

.allowed-time {
    background-color: #fff;
    width: 73px;
    height: 33px;
    border-radius: 5px;
    text-align: center;
    color: #655FFF;
    box-shadow: 0px 2px 8px 1px #00000040;
    font-size: 19px;
    font-weight: 700;
    text-align: center;
}

.bg-disabled {
    background-color: #eceef1;
}

.border-review-question-attachment {
    border-radius: 10px;
    box-shadow: 0 4px 8px 0 rgba(155, 154, 154, 0.19), 0 6px 20px 0 rgba(155, 154, 154, 0.19);
}

@media only screen and (min-width: 768px) {
    .form-search-mobile {
        display: none;
    }
}

@media only screen and (max-width: 767px) {
    .form-search-desktop {
        display: none;
    }
}

.attachment-container {
    /* overflow: scroll; */
    overflow-y: hidden;
    max-width: 19.5rem;
}

/* width */
.scroll-review-question::-webkit-scrollbar {
    height: 0.5em;
    width: 0.2em;
}

/* Track */
.scroll-review-question::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
.scroll-review-question::-webkit-scrollbar-thumb {
    background: #888;
}

/* Handle on hover */
.scroll-review-question::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.scroll-custom::-webkit-scrollbar {
    width: 5px;
}

.scroll-custom::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

.scroll-custom::-webkit-scrollbar-thumb {
    background-color: #888;
}

.preview-question-opacity {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.26;
}

.preview-matching-content {
    height: 40px;
    width: 100%;
    background: #FFFFFF80;
    border-radius: 10px;
    border: solid 1px #FFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}

.border-attachment-add-question {
    border: solid 1px #9C9C9C;
    border-style: dashed;
    border-radius: 6px;
    height: 150px;
    position: relative;
}

.border-attachment-add-question:hover {
    border-color: #655FFF;
}

.border-attachment-add-music {
    border: solid 1px #9C9C9C;
    border-style: dashed;
    border-radius: 6px;
    position: relative;
}

.border-attachment-add-music:hover {
    border-color: #655FFF;
}

.align-center {
    position: absolute;
    top: 50%;
    left: auto;
}

.wallet-password {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.pool-hover:hover, .hover-break:hover {
    color: #655FFF !important;
}

.wallet-password__input,
.wallet-otp__input {
    border: none;
    border-bottom: 2px solid #655FFF;
    font-size: 2rem;
    outline: none;
    text-align: center;
    width: 15%;
}

.hover-primary:hover {
    color: #655FFF !important;
}

.hover-border-primary:hover {
    border: solid 1px #655FFF !important;
}

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

.pointer {
    cursor: pointer;
}

.border-r-input {
    background-color: #F3F6F9;
    border-radius: 8px;
}

.border-input-none,
.border-btn-none {
    background-color: inherit;
    border: none;
    border-radius: inherit;
}

.border-input-none:focus {
    background-color: inherit;
}

.background-video {
    position: absolute;
    bottom: 0px;
    right: 0px;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    /* z-index: -1; */
    overflow: hidden;
}

#approve-question-content {
    box-shadow: 0 4px 8px 0 rgba(155, 154, 154, 0.19), 0 6px 20px 0 rgba(155, 154, 154, 0.19);
    border-radius: 10px;
    margin-bottom: 12px;
}

.button-sm {
    cursor: pointer;
}

.button-sm:hover {
    color: #655FFF;
}

.review-attachment-item {
    border: solid 1px #8d8d8c18;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: right;
    min-height: 100px;
}

.clear-attachment-icon {
    cursor: pointer;
    font-size: 30px;
    position: absolute;
    top: 0;
    right: 0;
}

.main-color {
    background-color: #655FFF !important;
    color: #FFFFFF !important;
}

.text-gray-400 {
    color: #E4E6EB !important;
}

.bg-gray-400 {
    background-color: #E4E6EB !important;
}

.text-gray-600 {
    color: #afb0b1 !important;
}

.bg-gray-600 {
    background-color: afb0b1 !important;
}

.select-field-of-study-fixed {
    position: fixed;
    z-index: 10000;
}

.list-select-fixed {
    max-height: 400px;
    overflow: scroll;
    overflow-x: hidden;
    box-shadow: 0 4px 8px 0 rgba(155, 154, 154, 0.19), 0 6px 20px 0 rgba(155, 154, 154, 0.19);
}

.item-list-fixed {
    cursor: pointer;
    padding: 10px;
}

.item-list-fixed:hover {
    background-color: rgb(222, 223, 224);
    color: #000;
}

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


/* switch*/

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

.max-w-300px {
    max-width: 300px;
}

input:checked+.slider {
    background-color: #34C759;
}

input:focus+.slider {
    box-shadow: 0 0 1px #34C759;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(33px);
}

.avatar-table-approve {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-size: cover;
}


.avatar-info-referrer {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    background-size: cover;
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.question-color {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    margin: 2px;
    cursor: pointer;
    box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.question-file {
    border-radius: 10px;
    margin: 2px;
    cursor: pointer;
    box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media only screen and (min-width: 767px) {
    .question-file {
        width: 71px;
        height: 71px;
    }
}

@media only screen and (max-width: 767px) {
    .question-file {
        width: 49px;
        height: 49px;
    }
}

.custom-shadow {
    box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
}

.items-selected-fos {
    border: solid 1px #333;
    border-radius: 5px;
    margin: 4px;
    padding: 0 4px;
    text-align: center;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.disabled {
    cursor: auto;
    color: rgb(218, 215, 215);
    padding: 10px;
}

/**
    table
*/

.table_text {
    font-size: 13px;
}

.fos-table-reviewer {
    max-height: 110px;
    overflow: auto;
    /* overflow-x: hidden; */
}

.fos-table-reviewer::-webkit-scrollbar {
    width: 5px;
}

.fos-table-reviewer::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

.fos-table-reviewer::-webkit-scrollbar-thumb {
    background-color: #888;
}


/* profile */
.svg_update_avatar {
    position: absolute;
    bottom: 0px;
    right: 0px;
    cursor: pointer;
}

.img_modal_update_avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.fos-list-favorite {
    height: 300px;
    overflow: auto;
    overflow-x: hidden;
}

.fos-list-favorite::-webkit-scrollbar {
    width: 5px;
}

.fos-list-favorite::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

.fos-list-favorite::-webkit-scrollbar-thumb {
    background-color: #888;
}

#dropContainer {
    border: 1px dashed #08B275;
    border-radius: 5px;
    height: 100px;
    margin-top: 12px;
}

.icon-home-page {
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

.icon-blue {
    color: rgba(3, 195, 236);
    background-color: rgba(3, 193, 236, 0.13);
}

.icon-green {
    color: rgb(113, 221, 55);
    background-color: rgba(113, 221, 55, 0.13);
}

.icon-gray {
    color: rgb(172, 172, 172);
    background-color: rgba(155, 155, 155, 0.13);
}

.icon-purple {
    color: rgb(105, 108, 255);
    background-color: rgba(105, 108, 255, 0.13);
}

.icon-yellow {
    color: #ffab00;
    background-color: #ffaa0013;
}

.icon-red {
    color: #ff3e1d;
    background-color: #ff3f1d13;
}

.top-item:hover {
    cursor: pointer;
    color: #000;
    font-weight: 600;
    background-color: rgb(222, 223, 224);
}

.cv_hover:hover {
    color: #655FFF;
    text-decoration: underline;
}

input[type="password"]::-ms-reveal {
    display: none;
}

.lg-input-password {
    font-size: 16px;
}


#video-container {
    position: relative;
}

.playButton {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: white;

}


.middle-border > div:not(:last-child) {
  border-right: 1px solid #ccc;
  padding-right: 8px;

}
.demo-inline-spacing > * {
    margin: 1rem 0 1rem 0 !important;
}

.text-xs {
    font-size: 10px;
}
.text-sm {
    font-size: 12px;
}
.text-base {
    font-size: 14px;
}
.text-md {
    font-size: 16px;
}
.text-lg {
    font-size: 18px;
}
.text-xl {
    font-size: 24px;
}

.MathJax {
    margin: 0 !important;
    display: contents !important;
}
.cke_notifications_area,
.cke_notification_warning,
.cke_notification,
.wrs_tickContainer {
    display: none !important;
}

@media (min-width: 1200px) {
    .hidden-1200px {
        display: none;
    }
}

@keyframes pulse {
    50% {
        opacity: .5;
    }
}
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}