.rounded-15 {
    border-radius: 15px;
}

.rounded-10 {
    border-radius: 10px;
}

#languageValue {
    font-weight: bold;
    padding: 5px 0px;
}

#languageSelector {
    padding: 10px 15px;
    background-color: #e9eaec;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}

#languageSelector:hover {
    background-color: #d1d3d7;
}

#languageSelector .dropdown-content {
    width: 100%;
    left: 0px;
}

.speaker-icon {
    width: 40px;
    border-radius: 5px;
}

.selected-speaker {
    border: 1px solid #838495;
    background-color: #e5e7eb;
}

.unselected-speaker {
    border: 1px solid #dce0e7;
    background-color: #f3f4f6;
}

.unselected-speaker:hover {
    background-color: #e5e7eb;
}


.speaker-name {
    color: #312b41;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.25rem;
    font-family: "Source Sans Pro", Helvetica, Arial, sans-serif;
    text-transform: capitalize;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.speaker-des {
    color: #6f7082;
    font-weight: 400;
    font-size: .9rem;
    line-height: 1.0rem;
    font-family: "Source Sans Pro", Helvetica, Arial, sans-serif;
}

.speaker-attribute {
    margin: 3px 0px 0px -3px;
}

.speaker-holder {
    padding: 10px 5px;
    height: 65vh;
    display: flex;
    flex-direction: column;
    background: white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15);
}

.scroll-holder {
    overflow: hidden;
    margin-right: 4px;
}

.scroll-holder:hover {
    overflow-y: scroll;
    margin-right: -4px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 2px grey;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    height: 50px;
    background: #cccccc;
    border-radius: 10px;
}

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

.speaker-item {
    display: flex;
    flex-wrap: nowrap;
    margin: 5px 8px;
    padding: 10px 10px;
    cursor: pointer;
    gap: 5px;
    transition: 0.2s;
}

.speaker-item:hover {
    margin: 5px 5px;
    padding: 12px 10px;
    cursor: pointer;
}

.speaker-element {
    padding: 0px 5px;
    display: grid;
}

.blur-div {
    position: absolute;
    border-radius: 50%;
    top: 75px;
    left: 50%;
    width: 1000px;
    max-width: 100%;
    transform: translateX(-50%);
    height: 158px;
    background: linear-gradient(91deg, #EAAFFF55 47.22%, #29025B55 110.53%);
    filter: blur(100px);
    z-index: 0;
    user-select: none;
    content: "";
    pointer-events: none;
}

.input-area {
    display: flex;
    flex-direction: column;
    height: 65vh;
    background: white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15);
}

.textarea-holder {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

.textarea-holder textarea {
    flex: 1 0 auto;
    width: 100%;
    padding: 15px 15px 15px 15px;
    margin-top: 30px;
    resize: none;
    outline: none;
}

.char-count-container {
    margin: 5px 10px 10px 10px;
}

.count-char-text {
    font-weight: 400;
    font-size: .75rem;
    font-family: "Atkinson Hyperlegible", serif;
    color: #6f7082;
}

#clearButton {
    background-color: #dce0e7;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    opacity: .6;
    cursor: pointer;
}

#clearButton:hover {
    background-color: #cacfd8;
}

#clearButton span {
    color: #5c5a6e;
    user-select: none;
}

#clearButton:hover span {
    color: #474358;
    user-select: none;
}

.player-holder {
    flex: 0 0 auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.time {
    font-family: "Atkinson Hyperlegible", serif;
    color: #9598a6;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.25rem;
    text-align: center;
}

#trackSlider {
    margin: 0px 5px;
    flex: 1;
}

.audio-controls {
    margin-top: 15px;
    gap: 1.5rem;
    position: relative;
}

.no-outl {
    outline: none !important;
}


h1.ssp-font {
    font-weight: 600;
    font-size: 2.5rem;
    line-height: 2.5rem;
}

.norm-text {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5rem;
}

.count-char {
    position: absolute;
    right: 15px;
    top: -30px;
    font-size: 15px;
}

.count-char>mark {
    font-weight: bold;
    background-image: linear-gradient(to right, #27aadc, #2871de);
}

.setting-label {
    display: flex;
}

@media (max-width: 768px) {
    .input-col {
        margin-top: 40px;
    }

    .coming-soon-img {
        left: -10px !important;
    }
}

.toolbar-row {
    position: absolute;
    width: 100%;
    display: flex;
    background-color: #e5e7eb;
    padding: 5px 10px;
    border-radius: 15px 15px 0px 0px;
    flex-wrap: nowrap !important;
    -webkit-box-align: center !important;
    align-items: center !important;
    justify-content: space-between;
    transition: 0.3s;
}


.toolbar-left {
    display: flex;
    flex-wrap: wrap !important;
    padding: 0px 0px;
}

.toolbar-right {
    display: flex;
    flex-wrap: wrap !important;
    padding: 0px 0px;
}

.group-row {
    display: flex;
    align-items: center;
    padding: 0px 5px !important;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.4375em;
    color: #242424;
}

.sm-icon {
    height: 20px;
}

.max-content {
    width: max-content;
}

.min-content {
    width: min-content;
}

#settingTrigger {
    font-family: "Source Sans Pro", Helvetica, Arial, sans-serif;
    margin: 0px;
    cursor: pointer;
    border-radius: 10px;
    padding: 0px 5px;
}

#settingTrigger:hover {
    background: #c7c9cd;
}

#settingTrigger span {
    user-select: none;
}

#settingTrigger hr {
    margin: 0px 10px;
}

.input {
    font-weight: bold;
}

#settingTrigger label {
    margin: 0px 0px;
}

#settingLabel {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 5px;
}

.dropdown-setting {
    position: absolute !important;
    width: 375px;
    border-radius: 10px;
    padding: 10px 15px;
}

.dropdown-setting span {
    text-align: left;
    padding: 0px 15px 3px 0px;
}

.dropdown-row {
    display: flex;
    padding: 5px 0px;
}

.rs-range {
    border-radius: 3px;
    -webkit-appearance: none;
    background: transparent
}

/* for google chrome */
.rs-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2) inset;
    background: rgba(150, 150, 150, 0.1);
    border-radius: 5px;
}

/* for firefox */
.rs-range::-moz-range-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2) inset;
    background: rgba(150, 150, 150, 0.1);
    border-radius: 5px;
}

.rs-range::-ms-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: transparent;
    /* MS cần track transparent để thể hiện thumb properly */
    border-color: transparent;
    color: transparent;
}

.rs-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 6px;
    border-radius: 5px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2) outset;
    background: rgba(0, 0, 0, 0);
    background-image: linear-gradient(to right, #9696a5, #635d73);
    cursor: pointer;
    margin-top: -5px;
}

.rs-range::-moz-range-thumb {
    height: 16px;
    width: 6px;
    border-radius: 5px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2) outset;
    background: rgba(0, 0, 0, 0);
    background-image: linear-gradient(to right, #9696a5, #635d73);
    cursor: pointer;
}

.rs-range::-ms-thumb {
    height: 16px;
    width: 6px;
    border-radius: 5px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2) outset;
    background: rgba(0, 0, 0, 0);
    background-image: linear-gradient(to right, #9696a5, #635d73);
    cursor: pointer;
}


.rs-label {
    position: relative;
    text-align: center;
    font-weight: bold;
    left: 33%;
    color: #fff;
    font-style: normal;
    line-height: normal;
    font-size: 16px;
}


.line {
    height: 1px;
    width: auto;
    border-bottom: 1px solid #b4b4b4 !important;
    margin: 0px 2px;
}

.dropdown-button {
    outline: none;
    border: none;
    margin: 0px;
    padding: 0px;
    background-color: transparent;
    cursor: pointer;
    float: right;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}


.flex-right {
    align-items: center;
    justify-content: flex-end;
}

.svg-dropdown {
    width: 25px;
    height: 25px;
}

.gray-hover {
    cursor: pointer;
    border-radius: 15px;
    background-color: transparent;
    padding: 0px;
    transition: 0.3s;
}

.gray-hover:hover {
    background-color: #d1d3d7;
}

.gray-hover * {
    user-select: none;
}

.divider {
    margin: 0px 5px;
    border: 1px solid rgba(30, 22, 78, 0.5);
    align-self: stretch;
    height: auto;
}

.slider {
    -webkit-appearance: none;
    height: 5px;
    border-radius: 5px;
    background: #f1f5f9;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: 0.2s;
    cursor: pointer;
}

.slider:hover {
    height: 10px;
}

.slider::-moz-range-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 3px;
    height: 15px;
    border-radius: 2px;
    background: #312b41;
    cursor: pointer;
}


.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 3px;
    height: 15px;
    border-radius: 2px;
    background: #312b41;
    cursor: pointer;
}

#playButton,
#pauseButton {
    margin: 4px;
}

.func-holder {
    display: none;
    align-items: center;
    position: absolute;
    right: 30px;
    gap: 10px;
}

.pointer-events-none {
    pointer-events: none;
}

.download-button {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 25px;
    color: white;
    background: #c8c8c8;
    transition: 0.2s;
}

.available {
    background: rgba(0, 0, 0, 0) !important;
    background-image: linear-gradient(to left, #2871de, #27aadc) !important;
}

.available:hover {
    cursor: pointer;
    padding: 12px 12px;
    right: 28px;
}

.download-button svg {
    fill: white;
    width: 22px;
    height: 22px;
    padding-bottom: 3px;
    transition: 0.1s;
}

.available:hover svg {
    stroke: white;
}

.large-sign-up {
    width: 200px;
    height: 50px;
    border-radius: 10px;
    background-color: #2871de;
    color: #ffffff;
    text-decoration: none !important;
    font-size: 18px;
    font-weight: bold;
    transition: 0.15s;
}

.large-sign-up:hover {
    background-color: #4c8ef1;
    color: #ffffff;
    text-decoration: none !important;
    ;
}

.large-sign-up span {
    user-select: none;
}

.template-item-container {
    background-color: rgba(71, 67, 88, .05);
    padding: 15px 10px;
    margin: 2rem 0rem 0rem 0rem;
    border-radius: 1rem;
}

.template-item {
    flex-wrap: nowrap;
    background-color: white;
    padding: 20px;
    border-radius: 0.5rem;
}

.speaker-gallery {
    display: grid;
    grid-column-gap: var(--chakra-space-4);
    width: var(--chakra-sizes-full);
    height: var(--chakra-sizes-full);
    position: relative;
    grid-template-columns: repeat(2, auto);
    grid-template-rows: repeat(3, auto);
    grid-template-areas:
        "speaker0 speaker1 speaker2"
        "speaker0 speaker1 speaker2"
        "speaker0 speaker1 speaker2"
        "speaker0 speaker1 speaker2"
        "speaker0 speaker4 speaker2"
        "speaker3 speaker4 speaker5"
        "speaker3 speaker4 speaker5"
        "speaker3 speaker4 speaker5"
        "speaker3 speaker4 speaker5";
}

@media screen and (min-width: 1440px) {
    .speaker-gallery {
        grid-template-columns: repeat(3, 176px);
    }
}

@media screen and (min-width: 1024px) {
    .speaker-gallery {
        width: initial;
        grid-template-columns: repeat(3, 145px);
    }
}

@media screen and (min-width: 768px) {
    .speaker-gallery {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, auto);
    }
}


@media (min-width: 500px) {
    .func-holder {
        display: flex !important;
    }

    .template-item-container {
        padding: 20px;
    }
}


@media (max-width: 500px) {
    .template-item {
        padding: 10px;
    }
}


.gallery-col {
    margin: 0px 5px;
    padding: 0px 0px;
    transition: 0.3s;
}


.speaker-gallery-item {
    position: relative;
    margin: 15px 0px;
    overflow: hidden;
    border-radius: 15px;
    transition: 0.2s;
}

.speaker-gallery-item:hover {
    margin: 15px -5px;
}

.speaker-gallery-item img {
    max-width: 100%;
    object-fit: cover;
    color: transparent;
}

.item-info {
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: 0px;
    width: 100%;
    padding: 8px 5px 8px 10px;
    background-color: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: 0.3s;
}

.item-info:hover {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px 5px 15px 10px;
}

.item-speaker-name {
    color: rgba(255, 255, 255, 0.85);
    font-weight: bold;
    font-size: 1.0rem;
    line-height: 1.0rem;
    font-family: "Source Sans Pro", Helvetica, Arial, sans-serif;
    text-transform: capitalize;
}

.item-speaker-des {
    color: rgba(255, 255, 255, 0.68);
    font-weight: 400;
    font-size: .7rem;
    line-height: 1.0rem;
    font-family: "Source Sans Pro", Helvetica, Arial, sans-serif;
}

.request-holder {
    margin: 35px 15px 20px 0px;
}

.table-100 {
    margin-top: 15px;
    border: 1px solid #e5e7eb;
    padding: 0px 0px 15px 0px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 0 40px 0 rgba(0, 0, 0, .15);
    -o-box-shadow: 0 0 40px 0 rgba(0, 0, 0, .15);
    -ms-box-shadow: 0 0 40px 0 rgba(0, 0, 0, .15);
}

.table-100 td {
    font-family: Lato-Regular;
    font-size: 15px;
    color: #242424;
    line-height: 1.4;
}


.table-100-head {
    background-color: #e5e7eb;
    padding: 0px 18px 0px 10px;
    width: 100%;
}

.table-100-body {
    padding: 0px 10px 0px 10px;
    max-height: 300px;
    overflow: auto;
}

.table-100 table {
    width: 100%;
    padding: 5px;
}

.table-100 tr {
    height: 40px;
    border-bottom: 1px solid #f5f5f5;
}

tbody tr:hover {
    background: #fafafa;
}

.col-title {
    width: 45%;
}

.col-speaker {
    width: 15%;
}

.col-count {
    width: 15%;
}

.col-status {
    width: 15%;
}

.col-action {
    width: 10%;
}

details {
    border-color: #cacfd8;
    padding-bottom: 10px;
    margin: 15px 0px 10px 0px;
}

details>summary {
    list-style-type: '';
    display: flex;
    align-items: center;
}

summary h3 {
    margin: 0px 0px 5px 0px;
    font-size: 20px;
    user-select: none;
    font-weight: bold;
}

summary svg {
    border-radius: 25px;
    margin: 3px 0px 5px 5px;
    padding: 2px;
    width: 30px;
    height: 30px;
}

summary:hover svg {
    background-color: #dce0e7;
}

details[open] svg {
    transition: 0.2s;
}

details[open] svg {
    transform: rotate(180deg);
}


.light-blue-bg {
    background-image: linear-gradient(to right, #e1e1e1, #e2eeff);
}


.display-title {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.display-title .title {
    color: #535353;
    font-weight: bold;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: start;
    justify-content: flex-start;
    width: 100%;
}

.display-title .title-time {
    opacity: 0.8;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: -0.4px;
    color: rgba(60, 60, 67, 0.8);
}

.rqsk-holder {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.rqsk-icon {
    margin-right: 10px;
}


.rqsk-icon img {
    width: 20px;
}

.rqsk-name {}

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

.rqsk-des {
    color: gray;
    font-size: 12px;
}

.report-button {
    border: none;
    border-radius: 25px;
    padding: 0px;
    background: rgba(0, 0, 0, 0);
    cursor: pointer;
}

.report-button svg {
    padding: 3px;
    background: #dce0e7;
    transform: rotate(0deg) !important;
    border: 1px solid #dce0e7;
    border-radius: 25px;
    width: 30px;
    height: 30px;
}

.report-button:hover svg {
    background: #c8ccd3;
}

.speaker-coming-soon {
    align-content: center;
    color: white;
    position: absolute;
    border-radius: 15px;
    width: 100%;
    background-color: rgb(249 249 249 / 50%);
    height: 100%;
    z-index: 1;
    user-select: none;
}

.coming-soon-img {
    position: relative;
    left: -7px;
    width: 28%;
    max-height: 100%;
}

.z-2 {
    z-index: 2;
}

#reportContent {
    min-height: 150px;
}

/* fix sweet alert padding right bugs */
body.swal2-shown {
    padding-right: 8px;
}

body.swal2-shown nav {
    padding-right: 10px;
}

body.stop-scrolling {
    padding-right: 8px;
}

body.stop-scrolling nav {
    padding-right: 10px;
}

/* fix sweet alert padding right bugs */

.swal2-title {
    padding: 10px 10px 5px 10px;
    margin: 0px 10px;
    border-bottom: 1px solid #e1e1e1;
    text-align: left;
}

.swal2-icon {
    border-color: #dc3545 !important;
    color: #dc3545 !important;
    width: 60px !important;
    height: 60px !important;
    margin: 1.5em auto .6em !important;
}

.swal2-html-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
    line-height: 26px !important;
    color: rgb(75, 75, 75) !important;
    font-size: 15px !important;
    text-align: left;
    padding: 10px 20px 20px 20px;
}

.swal2-html-container a {
    text-decoration: none !important;
}

.swal2-actions {
    margin-top: 0px;
}

.swal2-actions button {
    padding: 5px 20px;
}



.red-text {
    color: #dc3545 !important;
    font-weight: bold;
}

[data-bs-theme="light"] .textarea-holder {
    border: none !important;
}

[data-bs-theme="light"] .play-button svg path,
[data-bs-theme="light"] .pause-button svg path {
    fill: #ffffff;
}

[data-bs-theme="light"] .func-holder {
    border-bottom: none !important;
}

[data-bs-theme="dark"] .blur-div {
    background: linear-gradient(91deg, #29025B 47.22%, #EAAFFF 110.53%);
}

/* ===========================================================
   DARK MODE OVERRIDES
   =========================================================== */

[data-bs-theme="dark"] .speaker-holder,
[data-bs-theme="dark"] .input-area {
    background: #ffffff0d;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    border: 1px solid #424242 !important;
}

[data-bs-theme="dark"] .toolbar-row {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

[data-bs-theme="dark"] .player-holder {
    border-top-color: var(--border-color) !important;
}

[data-bs-theme="dark"] .light-blue-bg {
    background-image: linear-gradient(to right, #2c2f32, #202e48) !important;
}

[data-bs-theme="dark"] .speaker-name,
[data-bs-theme="dark"] .norm-text,
[data-bs-theme="dark"] .group-row,
[data-bs-theme="dark"] .item-speaker-name,
[data-bs-theme="dark"] #languageValue {
    color: var(--text-primary);
}

[data-bs-theme="dark"] .speaker-des,
[data-bs-theme="dark"] .count-char-text,
[data-bs-theme="dark"] .item-speaker-des {
    color: var(--text-secondary);
}

[data-bs-theme="dark"] #languageSelector {
    background-color: var(--bg-tertiary);
}

[data-bs-theme="dark"] #languageSelector:hover {
    background-color: var(--bg-hover);
}

[data-bs-theme="dark"] .selected-speaker {
    background-color: var(--bg-active);
    border-color: var(--bg-active);
}

[data-bs-theme="dark"] .unselected-speaker {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .unselected-speaker:hover {
    background-color: var(--bg-tertiary);
}

[data-bs-theme="dark"] .template-item {
    color: var(--text-primary);
    border: 1px solid #ffffff58;
}

[data-bs-theme="dark"] .template-item-container {
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    border: 1px solid #ffffff61;
}

[data-bs-theme="dark"] textarea#inputText {
    background-color: transparent !important;
    color: var(--text-primary);
}

[data-bs-theme="dark"] .divider,
[data-bs-theme="dark"] .line {
    border-color: var(--border-color) !important;
}

[data-bs-theme="dark"] #clearButton {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

[data-bs-theme="dark"] #settingTrigger:hover {
    background: var(--bg-hover);
}

[data-bs-theme="dark"] .dropdown-setting {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

[data-bs-theme="dark"] .dropdown-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-bs-theme="dark"] .my-dropdown-item:hover {
    background-color: var(--bg-hover);
}

[data-bs-theme="dark"] .gray-hover:hover {
    background-color: var(--bg-hover);
}

[data-bs-theme="dark"] .svg-m,
[data-bs-theme="dark"] .svg-dropdown {
    fill: var(--text-primary);
}

[data-bs-theme="dark"] .report-button svg {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
    fill: currentColor;
}

[data-bs-theme="dark"] .report-button:hover svg {
    background: var(--bg-hover);
}


[data-bs-theme="dark"] .slider::-moz-range-thumb {
    background: #989898;
}

[data-bs-theme="dark"] .slider::-webkit-slider-thumb {
    background: #989898;
}