* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nunito Sans", sans-serif;
}
:root {
  --color-primary: #ffca40;
  --chat-color: #f5c036;
  --color-black: #000;
  --color-white: #fff;
  --message-user: rgba(223, 223, 223, 0.98);
  /* sample colour */
  --dark-green: #0f3d33;
  --text-gray: #3f3f3f;
  --yellow: #f6f14d;
  --green-btn: #0f4d3c;
  --radial-yellow-gradient: linear-gradient(
    to right,
    #ffe550 0%,
    #f6c94d 0%,
    #fdfc47 100%
  );
  /* Primary Brand Colors */
  --color-home-bg: #f5f5f2;
  --color-primary: #ffca40;
  --color-primary-lighter: #ffe599;
  --color-primary-lighter-50: #f8f3e5;
  --color-primary-darker: #cc9c2d;
  --color-primary-hover: #f5c036;
  --color-primary-active: #d9a52c;
  --color-primary-disabled: #e6d8a8;
  --color-primary-text-disabled: #8c8c8c;
  --color-black: black;
  --color-ash: rgb(56, 56, 56);
  --color-lightblack: rgba(192, 192, 192, 0.89);
  --color-card: rgb(226, 226, 226);
  --color-white: #ffffff;
  --feature-blue: rgb(182, 207, 207);
  --card-feature-shadow: 0 20px 30px rgba(33, 182, 199, 0.87);
  --black-shadow: 0 -1px 1px rgba(8, 8, 8, 0.1) !important;
  --card-shadow-black: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
  --red-colour: red;
  --card-overlay-gradient: linear-gradient(
    var(--card-white-overlay-start),
    var(--card-white-overlay-end)
  );
  --image-background: #eff1f2;
  --card-white-overlay-end: rgba(255, 255, 255, 0.45);
  --card-white-overlay-start: rgba(253, 253, 253, 0.55);
  --card-gradinet: linear-gradient(
    135deg,
    #f1eacff5 0%,
    #f3e48cf6 50%,
    #f7d765 120%
  );
  --card-blue: linear-gradient(
    135deg,
    #def4f8f5 0%,
    #dbf2faf6 50%,
    #f3e48cf6 120%
  );
  --header-blue: radial-gradient(
    circle at top right,
    #fcf8ec 30%,
    #e0f1f8 65%,
    #e0f0f5 100%
  );
  --black-primary: radial-gradient(
    circle at top right,
    #021b27 0%,
    #021b27 45%,
    #021b27 100%
  );
  --card-white-shadow: 0 10px 30px rgba(252, 248, 248, 0.08);
  --toggle-bg: #111;
  --scroll-bg: #f0f0f0;

  /* app */
  --app-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --app-bg: #e9e3da;
  --app-main: #f5efe7;
  --caller-lne: #d9d9d9;
  --chat-bg: #f5f5f5;
}

.features-section,
.center-container {
  display: flex;
  justify-content: center;
}

.features-section {
  align-items: center;
}

.app-container {
  background: var(--app-bg) !important;
  padding: 20px;
  border-radius: 18px;
  box-shadow: var(--app-shadow) !important;
}

.main-card {
  background: var(--app-main) !important;
  border: none;
}

.caller-line {
  border: 1px solid var(--caller-lne) !important;
  border-radius: 6px !important;
}

/* 
   Audio Controls
 */
.audio-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.play-btn1 img {
  width: 12px !important;
  height: 12px !important;
  pointer-events: none;
}

.play-btn1,
.reset-btn {
  background: var(--chat-color);
  color: var(--color-black);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px !important;
}

.play-btn1:hover,
.reset-btn:hover {
  box-shadow: 0 0 2px 2px var(--color-primary);
  opacity: 0.9;
}

.play-btncall {
  background: var(--chat-color);
  color: var(--color-black);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px !important;
}
.play-btncall:hover,
.play-btncall:active {
  box-shadow: 0 0 2px 2px var(--color-primary) !important;
  background: var(--chat-color);
}

.time {
  font-size: 10px;
  color: var(--text-gray) !important;
}

/*
   Header Buttons
 */
.caller-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-btn {
  background: var(--chat-color);
  color: var(--color-black);
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px !important;
}
.ai-btn:hover {
  background: var(--color-primary) !important;
  box-shadow: 0 0 1px 1px var(--color-primary) !important;
}

.call-btn {
  border-radius: 10px;
  font-size: 14px !important;
  font-weight: 600;
}

/* Common max-width for main containers */

.app-container,
.message-box,
.scenario-buttons {
  max-width: 530px;
  width: 100%;
  margin: 0 auto;
}
/* 
   Chat Messages
 */
.message-box {
  height: 180px !important;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: var(--chat-bg) !important;

  overflow-y: scroll;
  scrollbar-gutter: stable;
}

.ai-message,
.caller-message {
  padding: 8px 12px;
  border-radius: 15px;
  font-size: 14px;
  max-width: 75%;
  width: fit-content;
  word-wrap: break-word;
  white-space: normal;
}

.ai-message {
  background: var(--chat-color);
  color: var(--color-black);
  align-self: flex-start;
}

.caller-message {
  background: var(--message-user);
  color: var(--color-black);
  align-self: flex-end;
}

.footer-buttons {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  white-space: nowrap;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.footer-buttons.active {
  cursor: grabbing;
}

.footer-buttons .pill-btn-footer {
  flex: 0 0 auto;
}

.pill-btn-footer {
  background-color: var(--app-main);
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: 0.2s ease;
  border: 1px solid var(--color-primary-disabled) !important;
  font-weight: bold !important;
}

.pill-btn-footer:hover,
.pill-btn-footer.active {
  background: var(--chat-color);
  color: var(--color-black);
}
.pill-btn {
  background-color: var(--app-main);
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: 0.2s ease;
  border: 1px solid var(--color-primary-disabled) !important;
  font-weight: bolder;
}
.pill-btn:hover,
.pill-btn.active {
  background: var(--chat-color);
  color: var(--color-black);
}

/* 
   Responsive
 */
@media (max-width: 576px) {
  .app-container {
    width: 100%;
  }
}
#progressBar {
  --progress: 0%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: transparent;
}

/* THIS is the magic */
#progressBar::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 10px;

  background: linear-gradient(
    to right,
    #f4b400 var(--progress),
    #ddd var(--progress)
  );
}

#progressBar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  margin-top: -4px;
  cursor: pointer;
}

/* Firefox */
#progressBar::-moz-range-track {
  height: 6px;
  border-radius: 10px;
  background: var(--color-white);
}

#progressBar::-moz-range-progress {
  height: 6px;
  border-radius: 10px;
  background: var(--color-primary);
}

#progressBar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
}
.footer-buttons {
  width: 100%;
  justify-content: flex-start;
}

.pill-btn {
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
}

.scenario-buttons {
  text-align: start;
  max-width: 600px;
  margin: 0 auto;
  gap: 3px;
  padding-left: 30px;
}

.scenario-buttons .pill-btn {
  display: inline-block;
  margin: 4px !important;
  padding: 4px 14px !important;
}
@media (max-width: 576px) {
  .message-box {
    height: 180px;
    padding: 8px;
    font-size: 13px;
    max-width: 100%;
  }
}
@media (max-width: 370px) {
  .message-box {
    height: 180px;
    padding: 8px;
    font-size: 13px;
    max-width: 100%;
  }
  .scenario-buttons {
    text-align: start;
    margin: 0 auto;
    gap: 12px;
    padding-left: 0px !important;
  }
}
@media (max-width: 750px) {
  .scenario-buttons {
    padding-left: 0 !important;
  }
}
/* WebKit browsers (Chrome, Safari, Edge) */
.footer-buttons::-webkit-scrollbar {
  height: 8px;
}

.footer-buttons::-webkit-scrollbar-track {
  background: var(--scroll-bg) !important;
  border-radius: 4px;
}

.footer-buttons::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
  border: 2px solid var(--scroll-bg) !important;
}

.footer-buttons::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary) !important;
}

/* Firefox */
.footer-buttons {
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--scroll-bg) !important;
}
.message-box {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* overlay container */
.center-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

/* SMALL play button */
.small-play-btn1 {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 18px;
  background: var(--color-primary) !important;
  color: var(--color-white);
  transition: 0.2s ease;
}

.small-play-btn1:hover {
  transform: scale(1.1);
}

/* hide chat in preview */
.message-box.preview .ai-message,
.message-box.preview .caller-message {
  display: none;
}
.message-box.playing {
  background-image: none !important;
}
.pill-btn.active {
  background: var(--color-primary);
  color: var(--color-black) !important;
}
.voice-chat {
  border-radius: 0% !important;
}
.voice-title {
  color: var(--color-white) !important;
}
.voice-modal-title {
  padding-top: 40px !important;
  font-size: 38px !important;
  font-weight: 600;
}
.scenario-buttons {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 3px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scenario-buttons::-webkit-scrollbar {
  display: none;
}

.scenario-buttons .pill-btn {
  flex: 0 0 auto;
  display: inline-block;
  min-width: 100px;
  text-align: center;
}
.voice-list{
  color: var(--color-white) !important;
  font-size: 14px !important;
}
.voice-closemdl{
  height: 24px ;
  width: 24px;
  cursor: pointer;
  margin-right: 7px !important;
}