@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');



::placeholder {
    color: #b7b7b7;
}

::-webkit-input-placeholder {
    color: #b7b7b7;
}

/* ===== Scrollbar CSS ===== */

/* Firefox - Hide scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #3F5EAB #ffffff;
}

/* Show scrollbar on hover for Firefox */
/**:hover {
    scrollbar-width: thin;
    scrollbar-color: #3F5EAB #ffffff;
}*/

/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #3F5EAB #ffffff;
    width: 16px;
}

/* Show scrollbar on hover */
/* *:hover::-webkit-scrollbar {
    width: 16px;
} */

/* Scrollbar track */
*::-webkit-scrollbar-track {
    background: transparent;
}

/* Scrollbar thumb */
*::-webkit-scrollbar-thumb {
    background-color: #3F5EAB;
    border-radius: 10px;
    border: 3px none #ffffff;
}

:root{
    --fs-chat-msg: 14px;
}

html {
    height: 100%;
}

body {
    background-color: #f7f9fc;
    font-family: "Poppins", serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
}

:disabled {
    opacity: 0.5;
}


html[dir="rtl"] .rtl-flip {
    transform: scaleX(-1);
}

.btn-primary {
    --bs-btn-bg: #0e2258;
    --bs-btn-border-color: #0e2258;
}

.btn-primary-gradient {
    background-image: linear-gradient(135deg, #f94d6a, #6744d1, #3b2ca7, #f94d6a);
    background-size: 300% 300%;
    background-position: 0% 50%;
    animation: gradientShift .8s ease-in-out infinite;
}

textarea {
    resize: none !important;
    max-height: 113px;
    min-height: 35px !important;
}

.form-label {
    margin-bottom: .5rem;
    color: #0e2258;
    font-size: 14px;
    font-weight: 500;
}

.chat-container {
    --gutter: 12px;
    --gutter-negative: calc(-1 * var(--gutter));
    width: 400px;
    height: 100dvh;
    padding: var(--gutter);
    overflow: hidden;
    font-family: "Poppins", serif;
    /* background: url(../images/background.png) no-repeat center; */
    background-size: cover;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 0.5rem;

}

/* Header */
.chat-header {
    background: #fff;
    padding: var(--gutter);
    margin-top: var(--gutter-negative);
    margin-left: var(--gutter-negative);
    margin-right: var(--gutter-negative);
}


.chat-title {
    color: #2D69B6;
    font-weight: 700;
    font-size: 16px;
}

.chat-subtitle {
    color: #689BDD;
    font-size: 14px;
    margin-bottom: 0;
}

.chat-profile {
    /* position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 1; */
    display: grid;
    align-items: end;
    overflow: auto;
    margin-left: var(--gutter-negative);
    margin-right: var(--gutter-negative);
}

.chat-profile img {
    max-width: 60%;
}


/* Chat Message */
.chat-box {
    padding: 15px;
    padding-top: 0;
}

.chat-date {
    display: flex;
    width: max-content;
    margin-left: auto;
    margin-right: auto;
    background: #8C8C8C;
    color: #fff;
    font-size: 12px;
    padding: 0.5em 1em;
    border-radius: 100em;
    font-family: "Inter", serif;
}

.chat-message {
    font-size: 14px;
    color: #3a3a3a;
    padding: 18px 16px;
    background: #fff;
    box-shadow: 0 4px 11px rgba(0, 0, 0, 0.03);
    border-radius: 12px 12px 12px 0;
}

/* Time */
.chat-time {
    font-size: 12px;
    color: #808080;
    margin-top: 5px;
    font-weight: 500;
    font-family: "Inter", serif;
}


.voice-message {
    display: inline-block;
    margin-top: 10px;
}

.voice-wave {
    width: auto;
    /* height: 36px; 
    margin: auto;*/
    background: #2563eb;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
}

.speaking-text {
    font-size: 12px;
    display: block;
    font-weight: 500;
    color: #808080;
    text-align: right;
}

.clearfix {
    clear: both;
}

/* Input Box */
.chat-input {
    background: white;
    border-radius: var(--gutter);
    box-shadow: 0 0 20px rgb(0 0 0 / 10%);
}


.chat-top-options {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: var(--gutter);
}

.chat-top-start,
.chat-top-end {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

.dropdown-menu {
    --bs-dropdown-border-width: 0;
    --bs-dropdown-item-padding-y: 0.5rem;
    --bs-dropdown-link-active-bg: transparent;
    --bs-dropdown-link-active-color: inherit;
    font-size: 14px;
    list-style: none;
    padding-left: 0 !important;
    box-shadow: 0 0 20px rgb(0 0 0 / 10%);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li.selected {
    background: #e1e8ff85;
}

.dropdown-menu li sub {
    bottom: 0.15em;
    opacity: 0.5;
    margin-right: 0.5em;
}

.chat-input-top {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 8px 10px;
    align-items: flex-end;
}

.voice-canvas-contaner {
    flex: 1;
    width: 100%;
    overflow: hidden;
}

.chat-input-top canvas {
    width: 100%;
    max-width: 100%;
    height: 36px;
}

.chat-input-top .form-control {
    font-size: 15px;
    padding: 0.5em 0;
    line-height: 1.2;
    border: none;
    min-height: calc(calc(1.2em * 1) + 1em) !important;
    /* 1 line min */
    max-height: calc(calc(1.2em * 4) + 1em);
    /* 4 lines max */
}

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

.resume-btn,
.pause-btn {
    background: #554f53;
}

.voice-record-btn i,
.resume-btn i,
.pause-btn i,
.voice-btn i,
.send-btn i {
    color: inherit;
    display: block;
    margin: auto;
}


.voice-record-btn,
.voice-confirm-btn,
.lang-btn,
.replay-btn,
.resume-btn,
.pause-btn,
.voice-btn,
.send-btn {
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    color: #fff;
}

.replay-btn {
    background: #bdcbec;
    color: #051b
}


.lang-btn {
    color: #fff;
    background: #554f53;
    padding: 0;
}

.voice-record-btn,
.voice-confirm-btn,
.voice-btn {
    color: #334a85;
}

.voice-record-btn:hover,
.voice-confirm-btn:hover,
.voice-btn:hover {
    background: #334a8526;
}

.send-btn-color {
    background: #3F5EAB;
}


.question-box {
    background: #EAF0FF;
    border: 1px solid #3F5EAB;
    border-radius: 12px 12px 12px 0;
    padding: 15px;
}

.question-box h3 {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
    color: #3F5EAB;
}

.question-box p {
    font-weight: 400;
    font-size: 14px;
}

.custom-radio {
    display: flex;
    align-items: start;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    gap: 10px;
    width: fit-content;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

/* Hide the default radio button */
.custom-radio input {
    display: none;
}

/* Custom radio button style */
.radio-checkmark {
    width: 16px;
    height: 16px;
    border: 1px solid #8C8C8C;
    border-radius: 50%;
    position: relative;
    flex: 0 0 auto;
    background: #fff;
}

/* Checked state */
.custom-radio input:checked+.radio-checkmark::after {
    content: "";
    width: 10px;
    height: 10px;
    background-color: #3F5EAB;
    /* Orange fill */
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Hover effect */
.custom-radio:hover {
    border-color: #3F5EAB;
}

.submit {
    background: #3F5EAB;
    border: 1px solid #3F5EAB;
    border-radius: 2px;
    padding: 8px 16px;
    font-size: 14px;
    color: #fff;
    transition: 0.6s ease-in-out
}

.submit:hover {
    color: #3F5EAB;
    background: #fff;
    border: 1px solid #FAFAFA;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
}

#buttons {
    position: relative;
    bottom: 83px;
}

.category-listing {
    display: none;
}

#idle-video-element {
    top: -115px;
    position: relative;
}

#stream-video-element {
    opacity: 1;
    height: 532px;
    width: 100%;
    object-fit: cover;
    bottom: 305px;
    position: absolute;
    top: -40px;
}

#modalButton {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    width: max-content;
    z-index: 99;
}


#consentPopup .modal-dialog {
    max-width: 350px;
    top: 34%;
}

.mycustommodal {
    background: #fff;
}


.mycustommodal .modal-dialog .modal-content {
    background: #EAF0FF;
    border: 1px solid #3F5EAB;
    border-radius: 12px 12px 12px 0;
    padding: 15px;
}

.mycustommodal .modal-dialog .modal-header {
    border-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
}

.mycustommodal .modal-dialog .modal-header .btn-close {
    font-size: 9px;
    padding-top: 0;
}

.mycustommodal .modal-dialog .modal-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
    color: #3F5EAB;
    margin-bottom: 0;
}

.mycustommodal .modal-dialog .modal-body {
    padding: 0;
    font-weight: 400;
    font-size: 14px;
}

.mycustommodal .modal-dialog .modal-footer {
    border-top: 0;
}

.mycustommodal .modal-dialog .btn {
    font-size: 14px;
    padding: 7px 24px;
    border-radius: 5px;
}

.mycustommodal .modal-dialog .policy-links {
    font-size: 12px;
    font-weight: 400;
}

.mycustommodal .modal-dialog .policy-links a {
    color: #2D69B6;
}


.modal-header .btn-close {
  padding-block: calc(var(--bs-modal-header-padding-y) * 0.5);
  padding-inline: calc(var(--bs-modal-header-padding-x) * 0.5);
  margin-block-start: calc(-0.5 * var(--bs-modal-header-padding-y));
  margin-block-end: calc(-0.5 * var(--bs-modal-header-padding-y));
  margin-inline-start: auto;
  margin-inline-end: calc(-0.5 * var(--bs-modal-header-padding-x));
}



ol,
ul,
menu {
    list-style: inside !important;
    margin: 0 !important;
    /* padding:0; */
    padding-left: 15px !important;
}

/* Container for chat messages */


.user-message {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Chat message styling */
/* .chat-message {
border-radius: 5px;
padding: 10px;
margin-bottom: 10px;
clear: both;
} */

.chat-message p {
    margin: 0;
}

.chat-message.ai-message,
.chat-message.float-end {
    --rounded-radius: 12px;
    max-width: 95%;
    font-family: "Poppins", serif;
    font-size: var(--fs-chat-msg, 14px);
    font-weight: 400;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    padding: 15px;
}

.chat-message.ai-message {
    background-color: #fff;
    color: #3a3a3a;
    border-radius: var(--rounded-radius) var(--rounded-radius) var(--rounded-radius) 0;
}

.chat-message.float-end {
    background-color: #3F5EAB;
    color: #fff;
    border-radius: var(--rounded-radius) var(--rounded-radius) 0 var(--rounded-radius);
}

.chat-time {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    align-self: flex-end;
}

.form-control:focus {
    box-shadow: none;
}

.chat-bubble {
    background-color: #E6F8F1;
    padding: 8px 16px;
    -webkit-border-radius: 20px;
    -webkit-border-bottom-left-radius: 2px;
    -moz-border-radius: 20px;
    -moz-border-radius-bottomleft: 2px;
    border-radius: 20px;
    border-bottom-left-radius: 2px;
    display: inline-block;
}

.typing {
    align-items: center;
    display: flex;
    height: 17px;
}

.typing .dot {
    animation: mercuryTypingAnimation 1.8s infinite ease-in-out;
    background-color: #6CAD96;
    border-radius: 50%;
    height: 7px;
    margin-right: 4px;
    vertical-align: middle;
    width: 7px;
    display: inline-block;
}

.typing .dot:nth-child(1) {
    animation-delay: 200ms;
}

.typing .dot:nth-child(2) {
    animation-delay: 300ms;
}

.typing .dot:nth-child(3) {
    animation-delay: 400ms;
}

.typing .dot:last-child {
    margin-right: 0;
}



@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


@keyframes mercuryTypingAnimation {
    0% {
        transform: translateY(0px);
        background-color: #6CAD96;
        /* rgba(20,105,69,.7); */
    }

    28% {
        transform: translateY(-7px);
        background-color: #9ECAB9;
        /* rgba(20,105,69,.4); */
    }

    44% {
        transform: translateY(0px);
        background-color: #B5D9CB;
        /* rgba(20,105,69,.2); */
    }
}

/* 
@media screen and (max-width:1800px) {
    .chat-profile img {
        top: -807px;
    }

    .chat-box {
        max-height: 410px;
    }
}

@media screen and (max-width:1536px) {
    .chat-profile img {
        top: -706px;
        max-width: 60%;
    }

    .chat-box {
        max-height: 340px;
    }
}

@media screen and (max-width:1440px) {
    .chat-profile img {
        top: -706px;
    }
}

@media screen and (max-width:1360px) {
    .chat-profile img {
        top: -706px;
    }
}

@media screen and (max-width:1280px) {
    .chat-profile img {
        top: -700px;
    }
}

@media screen and (max-width:992px) {
    .chat-profile img {
        top: -695px;
    }
} */


.fs-14 {
    font-size: 14px;
}

.bg-speak {
    background: #e1e8ffe0;
    color: #546ba5;
}

/* Container for the toggle */
.toggle-switch {
    position: relative;
    display: inline-block;
    /* width: 50px; */
    /* height: 22px; */
}

/* Hide default checkbox */
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

/* The track */
.slider {
    display: inline-block;
    position: relative;
    cursor: pointer;
    background-color: #d4d9e9;
    border-radius: 24px;
    width: 45px;
    height: 22px;
    transition: background-color 0.3s;
}

/* The circular slider */
.slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

/* Toggled state */
.toggle-switch input:checked+.slider {
    background-color: #546ba5;
}

.toggle-switch input:checked+.slider::before {
    transform: translateX(20px);
}


.chat-speak-switch {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5em;
    font-size: 14px;
    border-radius: 100em;
    padding-block: 0.25em; 
    padding-inline: 0.25em 1em;
    line-height: 1.25;
    position: relative;
}

.gap-1 {
    gap: 1em !important;
}

.speak-ico {
    width: 36px;
    height: 36px;
    padding: 7px;
    background: #fff;
    border-radius: 50%;
}

.speak-ico svg {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.chat-ins {
    font-size: 12px;
    text-align: center;
    color: #38559d;
    margin-top: var(--gutter);
}

.chat-ins span {
    color: #0e2258;
    font-weight: 600;
}

#playback-switch {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    display: none;
}

#playback-textspeed {
    font-weight: 600;
}

p #playback-textspeed::before {
    content: 'Normal';
}

.speak-ico svg #playback-wave,
.speak-ico svg #playback-wave2 {
    transition: 0.25s ease;
}


.speak-ico svg #playback-wave {
    fill-opacity: 0.3;
}

.speak-ico svg #playback-wave2 {
    fill-opacity: 0.2;
    transition-delay: 0.05s;
}

#playback-switch:checked~.speak-ico svg #playback-wave,
#playback-switch:checked~.speak-ico svg #playback-wave2 {
    fill-opacity: 1;
}

#playback-switch:checked~p #playback-textspeed::before {
    content: 'Slow';
}

@keyframes quiet {
    25% {
        transform: scaleY(.6);
    }

    50% {
        transform: scaleY(.4);
    }

    75% {
        transform: scaleY(.8);
    }
}

@keyframes normal {
    25% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(.4);
    }

    75% {
        transform: scaleY(.6);
    }
}

@keyframes loud {
    25% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(.4);
    }

    75% {
        transform: scaleY(1.2);
    }
}

.waveContainer {
    display: flex;
    justify-content: space-between;
    height: 100%;
    --boxSize: 2px;
    --gutter: 1px;
    width: 100%
}

.wave {
    transform: scaleY(.4);
    height: 100%;
    width: var(--boxSize);
    background: #eeebeb;
    animation-duration: 1.2s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    border-radius: 8px;
}

.wave1 {
    animation-name: quiet;
}

.wave2 {
    animation-name: normal;
}

.wave3 {
    animation-name: quiet;
}

.wave4 {
    animation-name: loud;
}

.wave5 {
    animation-name: quiet;
}

.chat-container {
    grid-template-rows: auto auto 0.75fr 1fr auto;
}

.chat-container>* {
    grid-column: 1;
}

.chat-header {
    grid-row: 1;
}

.btn-style-2 {
    display: inline-block;
    font-size: 13px;
    background: #0e2258;
    color: #e4eaff;
    padding: 0.5em 1em;
    border-radius: 100em;
    line-height: 1.1;
}

.chat-bg-img {
    margin-left: var(--gutter-negative);
    margin-right: var(--gutter-negative);
    padding-inline: calc(var(--gutter) * 3);
    padding-top: 18px;
    grid-row: 3/span 5;
    position: relative;
}

.chat-bg-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(360deg, #f7f9fc8c 50%, transparent);
}

.chat-bg-img img {
    max-height: 40%;
    margin: auto;
    object-fit: cover;
    object-position: top;
}

.chat-top-options {
    grid-row: 2/span 2;
    z-index: 11;
}

.chat-profile {
    -webkit-mask-image: -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(35%, black), color-stop(100%, black), to(transparent));
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 35%, black 100%, transparent);
    mask-image: -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(35%, black), color-stop(100%, black), to(transparent));
    mask-image: linear-gradient(to bottom, transparent, black 35%, black 100%, transparent);
    grid-row: 4;
    z-index: 1;
    padding-top: 50px;
}

.chat-bottom {
    grid-row: -1;
    z-index: 1;
}

@media(min-width: 991px) {
    .form-control.summary-report {
        height: 150px;
    }
}

.ai-message h5,
.ai-message h6 {
    font-size: 1.15em;
    font-weight:700;
    margin-block: 0.65rem;
}

.mute-unmute-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    /* makes it circular */
    border: none;
    background: #f1f1f1;
    /* light background */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    /* icon size */
    transition: background 0.3s, transform 0.2s;
}