@font-face {
    font-family: 'Omnes-Regular';
    src: url('./fonts/Omnes-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Omnes-Light';
    src: url('./fonts/Omnes-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Global CSS file or within a <style> block */
html,
body,
#root {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

button,
p {
    font-weight: 400 !important;
    font-family: 'Lato' !important;
}

p {
    margin-bottom: 0px !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Lato' !important;
    font-weight: 600 !important;
}

canvas {
    display: block;
}

.fullscreen-canvas {
    width: 100vw;
    height: 100vh;
}

.abg-logo-wrapper {
    margin-top: 20px;
    position: absolute;
    z-index: 99999;
    margin-left: 25px;
}

.audio-capture {
    position: absolute;
    z-index: 99999;
    color: white !important;
    bottom: 55px;
    right: 0;
    left: 0;
    cursor: pointer;
    text-align: center;
    width: 100px;
    height: 100px;
    margin: auto;
}

.m-left {
    margin-left: 300px;
}

.type2 {
    background: #33f;
}

.type2 .pulse-ring {
    background: transparent;
}

.pulse-ring {
    content: "";
    width: 100px;
    height: 100px;
    background: #33f;
    border: 5px solid #33f;
    border-radius: 50%;
    position: absolute;
    top: -5px;
    left: -5px;
    animation: pulsate infinite 1.5s;
}

@-webkit-keyframes pulsate {
    0% {
        -webkit-transform: scale(1, 1);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(1.3, 1.3);
        opacity: 0;
    }
}

@keyframes pulsate {
    0% {
        -webkit-transform: scale(1, 1);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(1.3, 1.3);
        opacity: 0;
    }
}

.btn {
    border: none;
    padding: 0;
    border-radius: 100%;
    width: 100px;
    height: 100px;
    font-size: 3em;
    color: #fff;
    padding: 0;
    margin: 0;
    background: #33f;
    position: relative;
    z-index: 999;
    display: inline-block;
    line-height: 100px;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
}

.color-white,
.color-white a {
    color: white !important;
}

.color-black,
.color-black a {
    color: black !important;
}

.color-blue,
.color-blue a {
    color: #33f !important;
}

.chat-box {
    position: absolute;
    width: 500px;
    right: 0;
    height: 100%;
    padding: 10px;
    z-index: 9999;
    overflow: hidden;
    overflow-y: auto;
    gap: 10px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body.has-playlist-layout .chat-box {
    height: 400px; 
    top: 20px; 
    bottom: auto;
    right: 20px;
}

.container-inner {
    direction: ltr;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    height: 800px;
}

.container-inner::-webkit-scrollbar {
    display: none;
}

.container-inner::-webkit-scrollbar-thumb {
    display: none;
}

.container-inner::-webkit-scrollbar-track {
    display: none;
}

.dir-rtl {
    direction: rtl;
}

.dir-ltr {
    direction: ltr;
}

.chat-box::-webkit-scrollbar {
    direction: rtl;
    width: 10px;
    background-color: white;
    display: none;
}

.ai {
    margin-top: 15px;
    color: black;
    width: 250px;
    align-self: flex-start;
    position: relative;
    font-family: 'Lato' !important;
    margin-bottom: 20px;
}

.ai-background {
    background-color: white;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
}

.client-background {
    background-color: white;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
}

.client {
    color: black;
    margin-right: 15px;
    position: relative;
    width: 250px;
    font-family: 'Lato' !important;
    align-self: flex-end;
}

.ai::before {
    display: block;
    clear: both;
    content: '';
    position: absolute;
    top: -6px;
    left: -7px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 12px 15px 12px;
    -webkit-transform: rotate(-37deg);
    -ms-transform: rotate(-37deg);
    transform: rotate(-37deg);
}

.white-pointer::before {
    border-color: transparent transparent white transparent;
}

.blue-pointer::before {
    border-color: transparent transparent #33f transparent;
}

.client::before {
    display: block;
    clear: both;
    content: '';
    position: absolute;
    bottom: 2px;
    right: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 12px 15px 12px;
    -webkit-transform: rotate(37deg);
    -ms-transform: rotate(37deg);
    transform: rotate(37deg);
}

.loader {
    position: absolute;
    top: 50px;
    bottom: 0px;
    left: 32px;
    right: 0px;
    margin: auto;
    width: 70px;
    height: 100px;
}

.dot-snipped {
    position: absolute;
    top: 95px;
    bottom: 0px;
    left: 46px;
    right: 0px;
    margin: auto;
    width: 70px;
    height: 100px;
}

.loader span {
    display: block;
    background: #ccc;
    width: 7px;
    height: 10%;
    border-radius: 14px;
    margin-right: 5px;
    float: left;
    margin-top: 25%;
}

.loader span:last-child {
    margin-right: 0px;
}

.loader span:nth-child(1) {
    animation: load 2.5s 1.4s infinite linear;
}

.loader span:nth-child(2) {
    animation: load 2.5s 1.2s infinite linear;
}

.loader span:nth-child(3) {
    animation: load 2.5s 1s infinite linear;
}

.loader span:nth-child(4) {
    animation: load 2.5s 0.8s infinite linear;
}

.loader span:nth-child(5) {
    animation: load 2.5s 0.6s infinite linear;
}

.loader span:nth-child(6) {
    animation: load 2.5s 0.4s infinite linear;
}

.loader span:nth-child(7) {
    animation: load 2.5s 0.2s infinite linear;
}

.loader span:nth-child(8) {
    animation: load 2.5s 0s infinite linear;
}

.loader span:nth-child(9) {
    animation: load 2.5s 0.2s infinite linear;
}

.loader span:nth-child(10) {
    animation: load 2.5s 0.4s infinite linear;
}

.loader span:nth-child(11) {
    animation: load 2.5s 0.6s infinite linear;
}

.loader span:nth-child(12) {
    animation: load 2.5s 0.8s infinite linear;
}

.loader span:nth-child(13) {
    animation: load 2.5s 1s infinite linear;
}

.loader span:nth-child(14) {
    animation: load 2.5s 1.2s infinite linear;
}

.loader span:nth-child(15) {
    animation: load 2.5s 1.4s infinite linear;
}

@keyframes load {
    0% {
        background: #fff;
        margin-top: 25%;
        height: 10%;
    }

    50% {
        background: #fff;
        height: 50%;
        margin-top: 0%;
    }

    100% {
        background: #fff;
        height: 10%;
        margin-top: 25%;
    }
}

.no-margin {
    margin: 0;
}

.rate-response div {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

a.thumb-selected i {
    color: black;
}

.close-btn {
    background: transparent;
    outline: 0;
    border: 0;
    cursor: pointer;
    color: transparent;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    font-size: 20px;
}

.toggle-chat {
    display: flex;
}

.chat-close {
    flex-direction: row-reverse;
}

.chat-open {
    flex-direction: column-reverse;
}

.dot-typing {
    position: relative;
    left: -9999px;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: white;
    color: white;
    box-shadow: 9984px 0 0 0 white, 9999px 0 0 0 white, 10014px 0 0 0 white;
    animation: dot-typing 1.5s infinite linear;
}

@keyframes dot-typing {
    0% {
        box-shadow: 9984px 0 0 0 white, 9999px 0 0 0 white, 10014px 0 0 0 white;
    }

    16.667% {
        box-shadow: 9984px -10px 0 0 white, 9999px 0 0 0 white, 10014px 0 0 0 white;
    }

    33.333% {
        box-shadow: 9984px 0 0 0 white, 9999px 0 0 0 white, 10014px 0 0 0 white;
    }

    50% {
        box-shadow: 9984px 0 0 0 white, 9999px -10px 0 0 white, 10014px 0 0 0 white;
    }

    66.667% {
        box-shadow: 9984px 0 0 0 white, 9999px 0 0 0 white, 10014px 0 0 0 white;
    }

    83.333% {
        box-shadow: 9984px 0 0 0 white, 9999px 0 0 0 white, 10014px -10px 0 0 white;
    }

    100% {
        box-shadow: 9984px 0 0 0 white, 9999px 0 0 0 white, 10014px 0 0 0 white;
    }
}

.preloader {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    margin: 0 auto;
    text-align: center;
    display: flex;
    align-items: center;
    background-color: #33f;
    justify-content: center;
}

.blue-background {
    background:
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.15), transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.1), transparent 60%),
        linear-gradient(180deg, #33f, #33f);
}

.text-area {
    position: absolute;
    bottom: 30px;
    right: 0;
    left: 0;
    margin: 0 auto;
    width: 100%;
}

.text-area textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    box-sizing: border-box;
}

.send-text {
    color: white;
    background-color: transparent !important;
    border: 0;
    cursor: pointer;
    outline: 0;
    font-size: 20px;
}

.send-text:hover {
    color: lightgray !important;
}

.video-player {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
}

.message-box-text {
    font-family: 'Lato';
}

/* ========================================
   SPLIT LAYOUT STYLES (Only when hasPlaylist is true)
   These styles only apply when body has the 'has-playlist-layout' class
   ======================================== */

body.has-playlist-layout .full-screen-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body.has-playlist-layout .video-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background-color: #33f;
}

body.has-playlist-layout .video-section video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    background-color: #33f;
}

body.has-playlist-layout .avatar-canvas-container {
    position: relative;
    height: 100%;
    width: 100%;
}

body.has-playlist-layout .avatar-section {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100vh;
    z-index: 2;
    background-color: transparent;
    overflow: hidden;
}

body.has-playlist-layout .fullscreen-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: transparent;
    z-index: 3;
}

body.has-playlist-layout canvas {
  height: 100% !important;
  width: 100% !important;
}

body.has-playlist-layout .abg-logo-wrapper {
    margin-top: 20px;
    position: absolute;
    z-index: 99999;
    margin-left: 25px;
}


.avatar-listening-indicator {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f8cff, #333fff);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;

  box-shadow: 0 0 0 rgba(79, 140, 255, 0.6);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 140, 255, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(79, 140, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 140, 255, 0); }
}


.video-status-message {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 1000;
    pointer-events: none;
    animation: fadeInOut 2s ease-in-out forwards;
  }
  
  @keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
  }

.chat-box-wrapper.hidden {
  opacity: 0;
  pointer-events: none;
}