html {
  height: 100%;
}

body {
  font-family: "Nunito", sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  height: calc(var(--app-vh, 1vh) * 100);
  background-color: var(--body-bg);
  color-scheme: dark;
}

* {
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

:root {
  --user-bubble: #13191e;
  --bot-bubble: #1f1f1f;
  --user-text: white;
  --bot-text: white;
  --chat-item-bg: #191919;
  --scroll: #222;
  --scroll-light: #d9d9d9;
  --scroll-track: #191919;
  --scroll-track-light: #b8b8b8;
  --scroll-track2: #070606;
  --scroll-track-hover: #333;
  --scroll-track-light-hover: #d0d0d0;
  --scroll-track-hover2: #888;
  --chat-item-bg-light: #e9e9e9;
  --chat-item-bg-retro: #f2f2f2;
  --chat-item-bg-hover: #e2e2e2;
  --chat-item-color: #e0e0e0;
  --chat-item-color-light: #222;
  --menu-bgr-light: #f0f0f0;
  --menu-bgr-dark: #1a1a1a;
  --chat-item-active-bg: #1e1e1e;
  --chat-item-active-bg-light: #dddddd;
  --Account-bg: #1f1f1f;
  --Account-bg-light: #f9f9f9;
  --body-bg: #2d2d2d;
  --body-bg-light: #ffffff;
  --edit-bg: #111;
  --edit-txt: #222;
  --edit-button: #222;
  --Select-txt: #222;
  --Select-bg: #111;
  --chat-button-bg: #151515;
  --chat-button-bg-light: #f5f5f5;
  --chat-button-bg-hover-: #444;
  --chat-button-bg-hover-light: #e8e8e8;
  --warning-bg: #7f1d1d;
  --warning-txt: #fca5a5;
  --link-bg: #272727;
  --edit-light-bg: #f2f2f2;
  --textarea-bg-light: #ccc;
  --save-edit-bg-light: #d9d9d9;
  --suggestion: #222;
  --suggestion-light: #f5f5f5;
  --search-bar: #191919;
  --search-bar-light: #e3e3e3;
  --search-bar-retro: #e6e6e6;
  --folder-bg: #191919;
  --folder-bg-light: #ccc;
  color-scheme: dark;
}

.chat-messages::-webkit-scrollbar {
  display: none;
  width: 0;
}

.chat-container {
  width: 100%;
  max-width: 2000px;
  height: 100%;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #0a0a0a;
  background-size: 250px;
  padding-bottom: 60px;
  margin-bottom: 0;
}

.message {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

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

.message.bot {
  flex-direction: column;
  align-items: flex-start;
}

.message .bubble {
  position: relative;
  max-width: 69%;
  border-radius: 25px;
  padding: 10px 15px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);

  font-family: "Nunito", sans-serif;
}

.message.user .bubble {
  background-color: var(--user-bubble) !important;
  color: var(--user-text) !important;
}

.message.bot .bubble {
  background-color: var(--bot-bubble) !important;
  color: var(--bot-text) !important;
}

body .message.bot .bubble {
  color: var(--bot-text) !important;
}

.chat-input {
  display: flex;
  padding: 16px;
  background-color: transparent !important;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 119%;
  box-sizing: border-box;
  z-index: 10;
}

.chat-input textarea {
  width: 106% !important;
  padding: 12px;
  padding-bottom: 5px;
  padding-right: 3%;
  font-size: 14px;
  border: none;
  border-radius: 9999px;
  outline: none;
  background-color: #151515;
  color: #ffffff;
  resize: none;
  overflow-y: auto;
  min-height: 36px;
  max-height: 40px;
  box-sizing: border-box;
}

.chat-input textarea::placeholder {
  font-family: "Nunito", sans-serif;
  opacity: 0.6;
}

.chat-input textarea:focus {
  border-color: #3a3a3a;
}

.ai-disclaimer {
  position: fixed;
  bottom: 4px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 11px;
  color: #fff;
  opacity: 0.45;
  pointer-events: none;
  z-index: 9;
  font-family: "Nunito", sans-serif;
}

.chat-input button {
  background-color: var(--chat-button-bg);
  color: white;
  border: none;
  border-radius: 100%;
  padding: 2px 2px;
  font-size: 14px;
  width: 40px;
  height: 40px;
  margin-left: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-input button img {
  height: 30px;
  width: 30px;
  margin: 0;
}

#stopButton {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 60px;
  background-color: var(--chat-button-bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
}

#stopButton svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25px;
  height: 25px;
  display: block;
  margin: 0;
}

#open-contact-form {
  position: fixed;
  top: 10px;
  right: 5px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

#back-form {
  position: fixed;
  top: 2px;
  left: 10px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

#back-button {
  width: 100%;
  height: 100%;
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0;
  }

  40% {
    opacity: 1;
  }
}

#dictationButton {
  position: absolute;
  top: 50%;
  right: -35px;
  transform: translateY(calc(-50% - 1px));
  background-color: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  height: 30px;
  opacity: 0.6;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#dictationButton img {
  height: 30px;
}

#dictationButton:hover {
  background-color: transparent;
}

.copy-button {
  background-color: transparent;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 5px 10px;
  font-size: 12px;
  margin-top: 1px;
  cursor: pointer;
}

.copy-button img {
  width: 20;
  height: 20px;
}

.copy-button:hover {
  opacity: 0.8;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  position: relative;
  background-color: var(--bot-bubble);
  filter: brightness(1.2) !important;
  padding: 20px;
  border-radius: 25px;
  max-width: 1000px;
  width: 100%;
  box-sizing: border-box;
  filter: none;
  z-index: 1100;
  height: auto;
}

.modal-text-formatted {
  width: 100%;
  max-height: 500px;
  margin-top: 10px;
  padding: 12px;
  font-size: 16px;
  border-radius: 25px;
  overflow-y: auto;
  color: var(--bot-text) !important;
  background-color: var(--bot-bubble);
  filter: brightness(0.9);
  box-sizing: border-box;
  white-space: pre-wrap;
}

.close-button {
  position: absolute;
  top: 0px;
  left: 0px;
  background-color: transparent;
  color: var(--user-text) !important;
  border: none;
  padding: 10px 10px;
  border-radius: 50%;
  cursor: pointer;
}

.background-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 999;
}

.select-button {
  background-color: transparent;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 5px 5px;
  margin-left: -10px;
  font-size: 12px;
  margin-top: 1px;
  cursor: pointer;
}

.select-button:hover {
  opacity: 0.8;
}

.select-button img {
  width: 20px;
  height: 20px;
}

.read-button,
.cancel-button {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-block;
  margin-top: 1px;
  margin-left: -9px;
}

.read-button img {
  width: 20px;
  height: 20px;
}

.cancel-button img {
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
}

.pause-button {
  display: inline-block;
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: -15px;
  margin-top: 2px;
  transition: transform 0.2s ease;
}

.pause-button img {
  width: 20px;
  height: 20px;
}

.pause-button:hover {
  transform: scale(1.1);
}

.pause-button {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.message .pause-button {
  opacity: 1;
}

.menu-btn {
  position: fixed;
  top: 30px;
  left: 10px;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 1000;
}

.menu {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100%;
  height: calc(var(--app-vh, 1vh) * 100);
  overflow-y: auto;
  color: white;
  transition: left 0.4s ease-in-out;
  padding: 20px;
  font-family: "Nunito", sans-serif;
  font-weight: 500;
  z-index: 999;
  border-top-right-radius: 45px;
  border-bottom-right-radius: 45px;
  border-right: none;
  background-color: #111;
  will-change: left;
  touch-action: none;
  box-sizing: border-box;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

.close-btn {
  font-size: 30px;
  cursor: pointer;
  color: white;
  position: absolute;
  top: 15px;
  right: 25px;
}

.close-btn img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.chat-selection {
  margin-top: 10px;
}

a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #fff;
}

a:not(:first-child) {
  margin-top: 10px;
}

.menu-btn.hide {
  display: none;
}

.menu.open + #back-form {
  display: none;
}

.voice-chat {
  background-color: #3a3a3a;
  color: white;
  border: none;
  border-radius: 100%;
  padding: 2px 2px;
  font-size: 14px;
  width: 40px;
  height: 40px;
  margin-right: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-chat img {
  height: 30px;
  width: 30px;
  margin: 0;
}

#settings-button {
  position: absolute;
  bottom: 15px;
  left: 15px;
  z-index: 10;
  width: 50px;
  height: 50px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: block;
}

#settings-button img {
  width: 100%;
  height: 100%;
}

#settings-menu {
  position: fixed;
  top: -60px;
  left: 10px;
  width: 120px;
  padding: 10px;
  background: #333;
  color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: top 0.3s ease-in-out;
  text-align: center;
  z-index: 1000;
}

.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #24814f;
}

input:checked + .slider:before {
  transform: translateX(14px);
}

.chat-history-container {
  height: 590px;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: #151515;
  border-radius: 35px;
  padding: 15px;
  width: 95%;
  margin-left: -9px;
  border: none;
  backdrop-filter: blur(6px);
}

.chat-history-container::-webkit-scrollbar {
  display: none;
  width: 0;
}

.chat-history-button {
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

.chat-history-item {
  background-color: var(--chat-item-bg);
  color: var(--chat-item-color);
  padding: 12px 14px;
  margin: 6px 0;
  border-radius: 25px;
  font-size: 15px;
  line-height: 1.4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.chat-history-item:hover {
  background-color: var(--chat-item-active-bg);
}

.chat-item {
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 10px;
  background-color: #262626;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.chat-item:hover {
  background-color: #333;
  border-color: #444;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.05);
}

.chat-item.swiped {
  transform: translateX(-60px);
  transition: transform 0.3s ease;
}

#chat-history-container .Chatnew {
  position: sticky;
  bottom: 0;
  font-family: "Nunito", sans-serif;
  background: #1e1e1e;
  border: none;
  color: white;
  border-radius: 99999px;
  cursor: pointer;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  padding: 0 10px;
  margin: 0;
  font-size: 12.5px;
  font-weight: 900;
}

#chat-history-container .Chatnew.text-btn {
  width: 80%;
}

#chat-history-container .Chatnew.temp-chat-btn {
  width: 35px;
  height: 35px;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  vertical-align: bottom;
}

#chat-list .chat-history-item {
  list-style-type: none;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
  position: relative;
}

#chat-list .chat-history-item.active-chat {
  background-color: var(--chat-item-active-bg);
  border: none;
  font-weight: 600;
  position: relative;
  transition: background-color 0.3s ease;
}

#chat-list .chat-history-item.active-chat::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background-color: currentColor;
  border-radius: 50%;
  opacity: 0;
  animation: fadeInPoint 0.5s ease-in-out forwards;
}

@keyframes fadeInPoint {
  0% {
    transform: translateY(-50%) scale(0.3);
    opacity: 0;
  }

  25% {
    transform: translateY(-50%) scale(0.6);
    opacity: 0.4;
  }

  50% {
    transform: translateY(-50%) scale(0.8);
    opacity: 0.7;
  }

  75% {
    transform: translateY(-50%) scale(1.1);
    opacity: 0.9;
  }

  100% {
    transform: translateY(-50%) scale(1);
    opacity: 1;
  }
}

.blinking-cursor {
  display: inline-block;
  animation: blink 1s steps(1, start) infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-left: 20px;
  margin-top: 0.5em;
  margin-bottom: 1rem;
}

.loading-container-overlay {
  position: relative;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
  margin-top: 0.5em;
  margin-bottom: 1rem;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
}

.loading-container-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 25%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.08) 55%,
    transparent 75%
  );
  filter: blur(6px);
  transform: translateX(-120%);
  animation: xenies-thinking-sheen 2.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.light-mode .loading-container-overlay::before {
  background: linear-gradient(
    100deg,
    transparent 25%,
    rgba(0, 0, 0, 0.04) 45%,
    rgba(0, 0, 0, 0.09) 50%,
    rgba(0, 0, 0, 0.04) 55%,
    transparent 75%
  );
}

@keyframes xenies-thinking-sheen {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateX(220%);
    opacity: 0;
  }
}

.loading-logo {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  animation:
    xenies-logo-pulse 1.6s ease-in-out infinite,
    xenies-logo-glow 1.6s ease-in-out infinite;
}

.loading-status-text {
  position: relative;
  z-index: 1;
}

@keyframes xenies-logo-pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes xenies-logo-glow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.3);
  }
}

.bubble .think-block.think-active summary {
  color: transparent;
  background-image: linear-gradient(
    90deg,
    #999999 0%,
    #999999 30%,
    #ffffff 50%,
    #999999 70%,
    #999999 100%
  );
  background-size: 300% 100%;
  background-position: 150% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: xenies-shimmer 2.4s linear infinite;
}

.loading-status-text {
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  color: transparent;
  background-image: linear-gradient(
    90deg,
    #555555 0%,
    #555555 28%,
    #999999 38%,
    #ffffff 50%,
    #999999 62%,
    #555555 72%,
    #555555 100%
  );
  background-size: 300% 100%;
  background-position: 150% 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation: xenies-shimmer 3.5s linear infinite;
}

.loading-status-text:empty {
  display: none;
}

@keyframes xenies-shimmer {
  0% {
    background-position: 150% 0;
  }

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

.loading-status-text.status-waiting {
  color: transparent;
  background-image: linear-gradient(
    90deg,
    #c49a3a 0%,
    #c49a3a 28%,
    #b58a35 38%,
    #ffffff 50%,
    #b58a35 62%,
    #c49a3a 72%,
    #c49a3a 100%
  );
  background-size: 300% 100%;
  background-position: 150% 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation: xenies-shimmer 3.5s linear infinite;
}

.loading-status-text.status-error {
  animation: none;
  background-image: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #ff7a7a;
}

.light-mode .loading-status-text {
  color: transparent;
  background-image: linear-gradient(
    90deg,
    #555555 0%,
    #555555 28%,
    #888888 38%,
    #ffffff 50%,
    #888888 62%,
    #555555 72%,
    #555555 100%
  );
  background-size: 300% 100%;
  background-position: 150% 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation: xenies-shimmer 3.5s linear infinite;
}

.light-mode .loading-status-text.status-waiting {
  color: transparent;
  background-image: linear-gradient(
    90deg,
    #c49a3a 0%,
    #c49a3a 28%,
    #b58a35 38%,
    #ffffff 50%,
    #b58a35 62%,
    #c49a3a 72%,
    #c49a3a 100%
  );
  background-size: 300% 100%;
  background-position: 150% 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation: xenies-shimmer 3.5s linear infinite;
}

.uiverse-svg {
  width: 30px;
  height: 30px;
  transform-origin: center;
  animation: rotate4 2s linear infinite;
  margin-bottom: 10px;
}

.uiverse-svg {
  width: 30px !important;
  height: 30px !important;
  transform-origin: center;
  animation: rotate4 2s linear infinite;
}

.uiverse-svg circle {
  fill: none !important;
  stroke: #fff;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 1, 200;
  stroke-dashoffset: 0;
  animation: dash4 1.5s ease-in-out infinite;
}

@keyframes rotate4 {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash4 {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 90, 200;
    stroke-dashoffset: -35px;
  }

  100% {
    stroke-dashoffset: -125px;
  }
}

.styled-link {
  color: #c1c1c1;
  text-decoration: none;
}

.styled-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.styled-code {
  background-color: color-mix(in srgb, var(--bot-bubble) 90%, black 20%);
  border-radius: 7px;
  padding: 10px;
  display: block;
  overflow-x: auto;
  font-family: monospace;
  border: 2px solid color-mix(in srgb, var(--bot-bubble) 90%, black 30%);
}

.modal-content .styled-code {
  background-color: var(--bot-bubble);
  filter: brightness(0.8);
  border-radius: 7px;
  padding: 10px;
  display: block;
  overflow-x: auto;
  font-family: monospace;
  border: 2px solid var(--bot-bubble);
  filter: brightness(0.7);
  color: var(--bot-text) !important;
}

.modal-content .styled-code-inline {
  background-color: color-mix(in srgb, var(--bot-bubble) 80%, black 20%);
  color: var(--bot-text) !important;
  border-radius: 5px;
  padding: 2px 5px;
  font-family: monospace;
}

.styled-code-inline {
  background-color: color-mix(in srgb, var(--bot-bubble) 90%, white 20%);
  color: var(--bot-text) !important;
  border-radius: 5px;
  padding: 2px 5px;
  font-family: monospace;
}

.styled-code::-webkit-scrollbar {
  height: 8px;
}

.styled-code::-webkit-scrollbar-track {
  background-color: color-mix(in srgb, var(--bot-bubble) 70%, black 30%);
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.styled-code::-webkit-scrollbar-thumb {
  background-color: color-mix(in srgb, var(--bot-bubble) 60%, black 40%);
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.modal-text-formatted::-webkit-scrollbar {
  width: 8px;
}

.modal-text-formatted::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--bot-bubble) 50%, black 50%);
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.modal-text-formatted::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--bot-bubble) 80%, black 20%);
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.modal-text-formatted::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--bot-bubble) 90%, black 10%);
}

.blockquote {
  background-color: #000;
}

.edit-button {
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 1px;
  margin-right: -7px;
}

.edit-button img {
  width: 20px;
  height: 20px;
  margin: 0;
}

.modal-edit {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content-edit {
  position: relative;
  background-color: var(--user-bubble);
  filter: brightness(0.8);
  padding: 20px;
  border-radius: 25px;
  max-width: 1000px;
  width: 100%;
  box-sizing: border-box;
  filter: none;
  z-index: 1100;
  height: auto;
}

.modal-textarea-edit {
  width: 100%;
  max-height: 600px;
  height: auto;
  margin-top: 10px;
  padding: 10px;
  font-size: 16px;
  border-radius: 25px;
  overflow-y: auto;
  color: var(--user-text);
  background-color: var(--user-bubble);
  filter: brightness(0.7);
  box-sizing: border-box;
  white-space: pre-wrap;
  font-weight: 500;
  resize: none;
  border: none;
}

.close-button-edit {
  position: absolute;
  top: 0px;
  left: 0px;
  background-color: transparent;
  fill: var(--user-text) !important;
  color: var(--user-text) !important;
  border: none;
  padding: 10px 10px;
  border-radius: 50%;
  cursor: pointer;
}

.background-blur-edit {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 999;
}

.save-button-edit {
  margin-top: 10px;
  background-color: var(--user-bubble);
  filter: brightness(0.7);
  color: var(--user-text) !important;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: background-color 0.3s ease;
  float: right;
}

#chat-list .chat-options-btn {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  transition: opacity 0.2s ease;
}

.chat-options-menu {
  border-radius: 25px;
}

.date-divider {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ccc;
  text-transform: uppercase;
  padding: 8px 12px;
  margin-top: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style-type: none;
}

#charCount {
  position: absolute;
  bottom: 15px;
  right: 12px;
  font-size: 12px;
  color: #999;
  user-select: none;
  pointer-events: none;
  font-family: monospace;
}

#warning {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-56%);
  padding: 0.75rem;
  border-radius: 25px;
  font-size: 0.875rem;
  background-color: var(--warning-bg);
  color: var(--warning-txt);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.5s ease-in-out,
    visibility 0.5s ease-in-out;
  box-sizing: border-box;
  z-index: 10;
  white-space: nowrap;
}

#warning.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  margin-bottom: 10px;
}

.textarea-container {
  position: relative;
  width: 91%;
}

#importChatButton,
#globalMenuBtn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.account-container {
  position: absolute;
  bottom: 65px;
  left: 23px;
  z-index: 20;
  display: flex;
  align-items: center;
  background: transparent;
  border-radius: 50px;
  padding-right: 8px;
  width: 45px;
  height: 50px;
  overflow: hidden;
  transition:
    width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s;
  border: 1px solid transparent;
}

.account-container.expanded {
  width: 100px;
  background: transparent;
}

.account {
  min-width: 50px;
  height: 50px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transform: translate(-7px, -2px);
  z-index: 22;
}

.expand-arrow {
  cursor: pointer;
  padding: 5px;
  color: #555;
  font-size: 14px;
  transition:
    transform 0.3s ease,
    color 0.2s;
  z-index: 21;
  position: absolute;
  left: 37px;
}

.account-container.expanded .expand-arrow {
  transform: rotate(180deg);
  color: #fff;
  margin-left: 45px;
}

.extra-icons {
  display: flex;
  align-items: center;
  margin-left: 2px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  transform: translateX(-10px);
}

.account-container.expanded .extra-icons {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  margin-left: -10px;
}

.icon-item {
  width: 35px;
  height: 35px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s;
}

.icon-item:hover {
  transform: scale(1.1);
  background: transparent;
}

body.fade-out {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.links-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  animation: fadeInOverlay 0.25s forwards;
}

.links-modal-content {
  background: rgba(20, 20, 20, 0.95);
  color: var(--bot-text);
  padding: 30px 35px;
  border-radius: 45px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: "Nunito", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
  user-select: text;
  transform: translateY(-20px);
  opacity: 0;
  animation: slideInModal 0.3s forwards;
}

.links-modal-content h3 {
  margin: 0 0 25px;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--bot-text);
  text-align: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  letter-spacing: 0.05em;
}

.links-modal-content ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.links-modal-content li {
  margin-bottom: 15px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.links-modal-content a {
  color: var(--bot-text);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  padding: 6px 8px;
  border-radius: 25px;
}

.link-url {
  word-break: break-all;
  overflow-wrap: anywhere;
}

.links-modal-content a:hover,
.links-modal-content a:focus {
  color: var(--bot-text);
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateX(3px);
}

.links-modal-close {
  display: block;
  margin: 30px auto 0;
  padding: 12px 40px;
  border: none;
  border-radius: 30px;
  background: color-mix(in srgb, var(--bot-bubble) 80%, black 20%);
  color: var(--bot-text);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 3px 4px 7px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.links-modal-close:hover,
.links-modal-close:focus {
  background: color-mix(in srgb, var(--bot-bubble) 98%, rgb(255, 255, 255) 2%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  outline: none;
}

.link-text-wrapper {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.link-title-modal {
  font-size: 14px;
  font-weight: 500;
  color: var(--bot-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.link-domain-modal {
  font-size: 12px;
  color: color-mix(in srgb, var(--bot-text) 75%, rgb(0, 0, 0) 25%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-content-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  transition: background 0.2s;
}

.link-content-block:hover {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 25px;
}

.favicon-icon-modal {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.external-link-icon {
  flex-shrink: 0;
  color: #666;
  margin-left: auto;
  margin-top: 2px;
}

@keyframes fadeInOverlay {
  to {
    opacity: 1;
  }
}

@keyframes slideInModal {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.bubble .links-button {
  border: none;
  border-radius: 20px;
  background-color: rgba(50, 50, 50, 0.85);
  color: white;
  cursor: pointer;
  font-size: 0.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease;
  margin-top: 5px;
  padding: 3px 5px;
}

.bubble .links-button:hover {
  filter: brightness(100%);
  transform: scale(1.02);
}

.links-button-icons {
  display: flex;
  align-items: center;
  position: relative;
}

.favicon-icon-button {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  position: relative;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.favicon-icon-button:not(:first-child) {
  margin-left: -6px;
}

.favicon-icon-button:hover {
  transform: scale(1.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 999;
}

.links-button span:first-child {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
}

.links-button span,
.links-button img {
  pointer-events: none;
}

.message.bot .bubble .styled-table {
  box-sizing: border-box;
  border-collapse: separate;
  border-spacing: 0;
  display: inline-block;
  overflow-x: auto;
  white-space: nowrap;
  table-layout: fixed;
  word-break: break-word;
  width: auto;
  max-width: 75%;
  border: 2px solid color-mix(in srgb, var(--bot-text) 70%, black 30%);
  border-radius: 15px;
  overflow-y: hidden;
  background-color: transparent;
}

.message.bot .bubble .styled-table th,
.message.bot .bubble .styled-table td {
  padding: 8px;
  color: var(--bot-text);
  background-color: transparent;
  border-bottom: 2px solid color-mix(in srgb, var(--bot-text) 70%, black 30%);
  border-right: 2px solid color-mix(in srgb, var(--bot-text) 70%, black 30%);
  white-space: nowrap;
}

.message.bot .bubble .styled-table th:last-child,
.message.bot .bubble .styled-table td:last-child {
  border-right: none;
}

.message.bot .bubble .styled-table tr:last-child td {
  border-bottom: none;
}

.message.bot .bubble .styled-table th {
  background-color: color-mix(in srgb, var(--bot-bubble) 70%, white 7%);
}

.modal-text-formatted .styled-table {
  box-sizing: border-box;
  border-collapse: separate;
  border-spacing: 0;
  display: inline-block;
  overflow-x: auto;
  white-space: nowrap;
  table-layout: fixed;
  word-break: break-word;
  width: auto;
  max-width: 75%;
  border: 2px solid color-mix(in srgb, var(--bot-text) 70%, black 30%);
  border-radius: 15px;
  overflow-y: hidden;
  background-color: transparent;
}

.modal-text-formatted .styled-table th,
.modal-text-formatted .styled-table td {
  padding: 8px;
  color: var(--bot-text);
  background-color: transparent;
  border-bottom: 2px solid color-mix(in srgb, var(--bot-text) 70%, black 30%);
  border-right: 2px solid color-mix(in srgb, var(--bot-text) 70%, black 30%);
  white-space: nowrap;
}

.modal-text-formatted .styled-table th:last-child,
.modal-text-formatted .styled-table td:last-child {
  border-right: none;
}

.modal-text-formatted .styled-table tr:last-child td {
  border-bottom: none;
}

.modal-text-formatted .styled-table th {
  background-color: color-mix(in srgb, var(--bot-bubble) 70%, white 7%);
}

.suggestion-box {
  position: absolute;
  bottom: 100%;

  margin-bottom: 5px;
  background: var(--suggestion);

  color: var(--dynamic-text-color);

  border: none;

  padding: 5px 10px;
  border-radius: 25px;
  display: none;
  z-index: 100;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);

  left: 0;
}

.suggestion-box::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 12px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--suggestion);
}

.suggestion-box div:hover {
  background-color: #333;

  border-radius: 15px;

  padding-left: 10px;

  transition: all 0.2s ease;
}

.suggestion-box div:active {
  background-color: #555;
}

.bubble .think-block {
  border: none;
  border-radius: 25px;
  background-color: transparent;
  font-size: 0.9em;
  cursor: default;
  margin: 0 0 8px 0;
  padding: 0;
}

.bubble .think-block summary {
  font-weight: bold;
  color: color-mix(in srgb, var(--bot-text) 70%, black 30%);
  cursor: pointer;
  outline: none;
  list-style: none;
  position: relative;
  padding-left: 20px;
  margin: 0;
  line-height: 1.4;
}

.bubble .think-block summary::before {
  content: "";
  position: absolute;
  left: 0;
  width: 1.2em;
  height: 1.2em;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23a0a0a0' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: rotate(0deg);
  transform-origin: center center;
  transition: transform 0.3s ease-in-out;
}

.bubble .think-block[open] summary::before {
  transform: rotate(90deg);
}

.bubble .think-block .think-content {
  margin: 6px 0 0 0;
  color: color-mix(in srgb, var(--bot-text) 70%, black 30%);
  white-space: pre-wrap;
  padding-bottom: 5px;
  border-bottom: 1px dashed #a0a0a0;
  line-height: 1.5;
}

#chat-list .umbennen {
  color: #fff;
}

:root {
  --text-color: #e8e8e8;
  --primary-color: #333;
  --border-color: #555;
  --bg-hover: rgba(255, 255, 255, 0.05);
  --transition: 0.25s ease;
}

.folder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--dynamic-text-color);
}

#folder-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  margin: 0;
  cursor: pointer;
  user-select: none;
  transition: color var(--transition);
}

#folder-header-title:hover {
  color: var(--primary-color);
}

#folder-arrow {
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 0.25s ease;
  margin-right: 8px;
}

#folder-header-title.open #folder-arrow {
  transform: rotate(90deg);
}

#create-folder-btn {
  background: var(--folder-bg, #191919);
  border: none;
  border-radius: 20px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  font-family: "Nunito", sans-serif;
  gap: 6px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--transition),
    transform var(--transition);
}

#create-folder-btn:hover {
  transform: scale(1.05);
}

#folder-collapse {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition);
}

#folder-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.chat-history-item {
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 25px;
  margin: 6px 10px;
  text-align: center;
  transition: background var(--transition);
}

.chat-history-item:hover {
  background: var(--bg-hover);
}

hr {
  border: 0;
  border-radius: 2px;
  height: 1px;
  background: var(--border-color);
  margin: 8px 0;
}

.folder-options-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--transition),
    transform var(--transition);
}

.folder-options-btn:hover {
  background: var(--bg-hover);
  transform: scale(1.1);
}

.folder-options-btn svg {
  fill: #e3e3e3;
}

.Icon {
  color: var(--dynamic-svg-color);
}

#chat-search-container {
  position: relative;
  width: 200px;
  margin: 5px;
  background-color: transparent;
  border-radius: 25px;
}

#chat-search {
  width: 100%;
  padding: 6px 30px 6px 10px;
  border-radius: 25px;
  height: 25px;
  border: none;
  font-size: 14px;
  font-family: "Nunito", sans-serif;
  background-color: var(--search-bar);
}

#chat-search-clear {
  position: absolute;
  top: 50%;
  right: -38px;
  transform: translateY(-50%);
  z-index: 10;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #888;
}

.message-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  margin-top: 3px;
  margin-left: 10px;
}

.message-buttons button {
  background: transparent;
  border: none;
  padding: 1px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.message-buttons button:hover {
  opacity: 0.9;
}

.options-menu.hidden {
  display: none;
}

.global-dropdown-menu {
  border-radius: 25px;
}

.three-dots-container {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin-left: -9px;
  margin-top: 2px;
  display: inline-block;
}

.options-menu {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #222;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  padding: 7px 13px !important;
  z-index: 1000;
  white-space: nowrap;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  padding: 6px 12px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  margin-top: 5px;
}

.menu-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.menu-item:hover {
  opacity: 0.8;
}

.three-dots-container {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin-left: -9px;
  margin-top: 2px;
  display: inline-block;
}

.message-actions {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  margin-top: 3px;
  margin-right: 5px;
}

.message-actions button {
  background: transparent;
  border: none;
  padding: 1px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.message-actions button:hover {
  opacity: 0.9;
}

.modal-folder {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-folder.active {
  opacity: 1;
}

.modal-content-folder {
  background-color: #111;
  padding: 25px;
  border-radius: 45px;
  min-width: 320px;
  max-width: 400px;
  text-align: left;
  color: white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 15px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
  transform: scale(0.8);
  opacity: 0;
}

.modal-folder.active .modal-content-folder {
  transform: scale(1);
  opacity: 1;
}

.modal-input {
  width: 100%;
  padding: 10px 15px;
  border-radius: 25px;
  border: none;
  background-color: #222;
  color: white;
  font-size: 16px;
  outline: none;
  text-align: left;
  box-sizing: border-box;
}

.modal-btn {
  flex: 1;
  padding: 8px 18px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.btn-cancel {
  background-color: #222;
  color: white;
}

.btn-create {
  background-color: #007aff;
  color: #fff !important;
}

.memory-status-info {
  font-size: 11px;
  color: var(--bot-text);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--bot-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  line-height: 1;
}

.memory-status-info svg {
  display: block;
  flex-shrink: 0;
  margin-top: -1px;
}

.memory-popover {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 25px;
  padding: 12px;
  width: 240px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 3000;
  animation: popIn 0.2s ease-out;
}

.popover-close-btn {
  background: none;
  border: none;
  color: #8e8e93;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.popover-fact-item {
  margin-left: 5px;
}

.memory-popover.drop-down {
  bottom: auto;
  top: calc(100% + 10px);
}

.popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.popover-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.popover-fact-list {
  margin: 8px 0;
  padding: 5px;
  border-radius: 10px;
  background-color: #222;
  color: #fff;
  list-style: none;
}

.btn-manage-memory {
  width: 100%;
  padding: 8px;
  background: #007aff;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 8px;
}

.styled-list {
  margin: 10px 0 10px 30px !important;
  padding-left: 0 !important;
  display: block !important;
}

.styled-list li {
  list-style-position: outside !important;
  margin-bottom: 5px !important;
  display: list-item !important;
}

ul.styled-list {
  list-style-type: disc !important;
}

ol.styled-list {
  list-style-type: decimal !important;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(5px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.light-mode {
  background-color: #ffffff;
  color: #000000;
}

.light-mode #chat-list .umbennen {
  color: #555;
}

.light-mode .suggestion-box {
  background-color: var(--suggestion-light);
  color: var(--dynamic-text-color);
}

.light-mode .suggestion-box::after {
  border-top: 5px solid var(--suggestion-light);
}

.light-mode .chat-container {
  background-color: #ffffff;
}

.light-mode .chat-messages {
  background-color: #ffffff;
}

.light-mode #chat-search {
  background-color: var(--search-bar-light);
}

.light-mode #create-folder-btn {
  background: var(--folder-bg-light);
  color: #fff !important;
}

.light-mode #create-folder-btn:hover {
  transform: scale(1.05);
}

.light-mode .modal-content-folder {
  background-color: #F5F5F7;
  color: #111111;
}

.light-mode .modal-input {
  background-color: #FFFFFF;
  color: #111111;
}

.light-mode .feedback-link {
  opacity: 0.5;
  filter: brightness(50%);
  color: var(--chat-item-bg-light) !important;
}

.light-mode .feedback-link:hover {
  color: var(--chat-item-bg-light) !important;
  filter: brightness(30%);
}

.light-mode .Icon {
  color: var(--dynamic-svg-color);
}

.light-mode body {
  background-color: var(--body-bg-light);
}

.light-mode .message.bot .bubble {
  background-color: var(--bot-bubble) !important;
  color: var(--bot-text) !important;
}

.light-mode .message.user .bubble {
  background-color: var(--user-bubble) !important;
  color: var(--user-text) !important;
}

.light-mode .chat-input {
  background: transparent !important;
  border: none;
}

.light-mode .chat-input textarea:focus {
  border: 1px solid #f5f5f5;
}

.light-mode .chat-input textarea {
  background-color: #f5f5f5;
  color: #000;
}

.light-mode .chat-input textarea::placeholder {
  color: #000;
}

.light-mode .chat-input button {
  background-color: var(--chat-button-bg-light);
  color: white;
}

.light-mode .chat-input button#stopButton {
  background-color: #f5f5f5;
}

.light-mode .chat-input #sendButton:hover {
  background-color: var(--chat-button-bg-hover-light);
}

.light-mode .chat-input #voice-chat:hover {
  background-color: var(--chat-button-bg-hover-light);
}

.light-mode .chat-input button#stopButton:hover {
  background-color: var(--chat-button-bg-hover-light);
}

.light-mode #chat-header {
  background-color: #fff;
  color: #333;
}

.light-mode #dictationButton {
  background-color: transparent;
  color: white;
}

.light-mode #dictationButton:hover {
  background-color: transparent;
}

.light-mode .bubble .links-button {
  background-color: color-mix(in srgb, var(--bot-bubble) 70%, black 5%);
  color: var(--bot-text);
}

.light-mode .links-modal-content {
  background-color: color-mix(in srgb, var(--bot-bubble) 70%, white 50%);
  color: var(--bot-text);
  padding: 30px 35px;
  border-radius: 45px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: "Nunito", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
  user-select: text;
  transform: translateY(-20px);
  opacity: 0;
  animation: slideInModal 0.3s forwards;
}

.light-mode .links-modal-content a {
  color: var(--bot-text);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  padding: 6px 8px;
  border-radius: 25px;
}

.light-mode .links-modal-content h3 {
  border-bottom: 2px solid #d6d6d6;
}

.light-mode .links-modal-close {
  background: color-mix(in srgb, var(--bot-bubble) 80%, black 2%);
  color: var(--bot-text);
}

.light-mode .menu {
  background-color: #f9f9f9;
  color: #000;
}

.light-mode a:hover {
  opacity: 0.8;
  background-color: #bfbfbf;
}

.light-mode .chat-history-container {
  background-color: #f3f3f3;
}

.light-mode .chat-history-container::-webkit-scrollbar-track {
  background: var(--scroll-track-light) !important;
}

.light-mode .chat-history-container::-webkit-scrollbar {
  width: 8px;
}

.light-mode .chat-history-container::-webkit-scrollbar-thumb {
  background: var(--scroll-light);
}

.light-mode .chat-history-container::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-track-light-hover);
}

.light-mode .chat-history-item {
  background-color: var(--chat-item-bg-light);
  color: var(--chat-item-color-light);
}

.light-mode .chat-history-item:hover {
  background-color: var(--chat-item-bg-hover);
}

.light-mode .active-chat {
  background-color: var(--chat-item-bg-light);
}

.light-mode #chat-history-container .Chatnew {
  background: #d9d9d9;
  color: white;
  border: none;
}

.light-mode #chat-list .chat-history-item.active-chat {
  background-color: var(--chat-item-active-bg-light);
}

.light-mode .account {
  background-color: var(--Account-bg-light);
}

.light-mode .date-divider {
  color: #2d2d2d;
  border-bottom: 1px solid #2d2d2d;
}

.light-mode svg {
  fill: #555;
}

.light-mode .styled-code-inline {
  background-color: color-mix(in srgb, var(--bot-bubble) 90%, black 20%);
  color: var(--bot-text) !important;
}

.light-mode .styled-code {
  background-color: color-mix(in srgb, var(--bot-bubble) 90%, black 20%);
}

.light-mode .modal-content .styled-code {
  background-color: var(--bot-bubble);
  filter: brightness(0.8);
  border: 2px solid var(--bot-bubble);
  filter: brightness(0.7);
  color: var(--bot-text) !important;
}

.light-mode .styled-link {
  color: #1a0dab;
}

.light-mode .styled-link:hover {
  color: #4285f4;
  text-decoration: underline;
  -webkit-tap-highlight-color: transparent;
  background-color: transparent;
}

.light-mode .chat-history-container::-webkit-scrollbar-track {
  background: var(--scroll-track2);
}

.light-mode .options-menu {
  background-color: #e3e3e3;
}

.light-mode .modal-content {
  background-color: #ddd;
  color: #000;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.light-mode .modal-input {
  background-color: #ccc;
  color: #000;
}

.light-mode .btn-cancel {
  background-color: #ccc;
  color: #000;
}

.light-mode .btn-create {
  background-color: #007aff;
  color: #fff !important;
}

.light-mode .memory-popover {
  background: #ddd;
  border: none;
}

.light-mode .popover-close-btn {
  color: #222;
}

.light-mode .popover-title {
  color: #222;
}

.light-mode .popover-fact-list {
  background-color: #ccc;
  color: #222;
}

.light-mode .btn-manage-memory {
  background: #007aff;
  color: #fff !important;
}

.light-mode .ai-disclaimer {
  color: #000;
}

.retro-mode {
  background-color: #e6e6e6;
  color: #000000;
}

.retro-mode #chat-list .umbennen {
  color: #555;
}

.retro-mode .suggestion-box {
  background-color: var(--suggestion-light);
  color: var(--dynamic-text-color);
}

.retro-mode .suggestion-box::after {
  border-top: 5px solid var(--suggestion-light);
}

.retro-mode .chat-container {
  background-color: #e6e6e6 !important;
}

.retro-mode .chat-messages {
  background-color: #e6e6e6;
}

.retro-mode #chat-search {
  background-color: var(--search-bar-retro);
  border: 2px solid #000;
  border-radius: 2px;
}

.retro-mode #create-folder-btn {
  background: var(--folder-bg-light);
  color: #fff !important;
  border: 2px solid #000;
  border-radius: 2px;
}

.retro-mode #create-folder-btn:hover {
  transform: scale(1.05);
}

.retro-mode .modal-content-folder {
  background-color: #F5F5F7;
  color: #111111;
}

.retro-mode .modal-input {
  background-color: #FFFFFF;
  color: #111111;
}

.retro-mode .feedback-link {
  opacity: 0.5;
  filter: brightness(50%);
  color: var(--chat-item-bg-light) !important;
}

.retro-mode .feedback-link:hover {
  color: var(--chat-item-bg-light) !important;
  filter: brightness(30%);
}

.retro-mode .Icon {
  color: var(--dynamic-svg-color);
}

.retro-mode body {
  background-color: #e6e6e6;
}

.retro-mode .message.bot .bubble {
  background-color: var(--bot-bubble) !important;
  color: var(--bot-text) !important;
  border: 2px solid #000;
  border-radius: 2px;
}

.retro-mode .message.user .bubble {
  background-color: var(--user-bubble) !important;
  color: var(--user-text) !important;
  border: 2px solid #000;
  border-radius: 2px;
}

.retro-mode .chat-input {
  background: transparent !important;
  border: none;
}

.retro-mode .chat-input textarea:focus {
  border: 2px solid #000 !important;
  border-radius: 2px;
}

.retro-mode .chat-input textarea {
  background-color: var(--chat-item-bg-retro);
  border: 2px solid #000 !important;
  border-radius: 2px;
  color: #000;
}

.retro-mode .chat-input textarea::placeholder {
  color: #000;
}

.retro-mode .chat-input button {
  background-color: var(--chat-item-bg-retro);
  color: white;
  border: 2px solid #000;
  border-radius: 2px;
}

.retro-mode .chat-input button#stopButton {
  background-color: var(--chat-item-bg-retro);
  border: 2px solid #000;
  border-radius: 2px;
}

.retro-mode .chat-input #sendButton:hover {
  background-color: var(--chat-item-bg-retro);
  border: 2px solid #000;
  border-radius: 2px;
}

.retro-mode .chat-input #voice-chat:hover {
  background-color: var(--chat-item-bg-retro);
  border: 2px solid #000;
  border-radius: 2px;
}

.retro-mode .chat-input button#stopButton:hover {
  background-color: var(--chat-item-bg-retro);
  border: 2px solid #000;
  border-radius: 2px;
}

.retro-mode #chat-header {
  background-color: #e6e6e6;
  color: #333;
}

.retro-mode #dictationButton {
  background-color: transparent;
  color: white;
}

.retro-mode #dictationButton:hover {
  background-color: transparent;
}

.retro-mode .links-modal-close {
  background-color: color-mix(in srgb, var(--bot-bubble) 70%, black 5%);
  color: var(--bot-text);
}

.retro-mode .links-modal-close:hover {
  background-color: color-mix(in srgb, var(--bot-bubble) 70%, black 3%);
}

.retro-mode .menu {
  background-color: #e6e6e6;
  border-right: 2px solid #000;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  border-radius: 2px;
  color: #000;
}

.retro-mode a:hover {
  opacity: 0.8;
  background-color: #bfbfbf;
}

.retro-mode .chat-history-container {
  background-color: #f3f3f3;
  border: 2px solid #000;
  border-radius: 2px;
  height: 580px;
}

.retro-mode .chat-history-container::-webkit-scrollbar-track {
  background: var(--scroll-track-light) !important;
}

.retro-mode .chat-history-container::-webkit-scrollbar {
  width: 8px;
}

.retro-mode .chat-history-container::-webkit-scrollbar-thumb {
  background: var(--scroll-light);
}

.retro-mode .chat-history-container::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-track-light-hover);
}

.retro-mode .chat-history-item {
  background-color: var(--chat-item-bg-retro);
  color: var(--chat-item-color-light);
  border: 2px solid #000;
  border-radius: 2px;
}

.retro-mode .chat-history-item:hover {
  background-color: var(--chat-item-bg-hover);
}

.retro-mode .active-chat {
  background-color: var(--chat-item-bg-light);
  border: 2px solid #000;
  border-radius: 2px;
}

.retro-mode #chat-history-container .Chatnew {
  background: #d9d9d9;
  color: white;
  border: 2px solid #000 !important;
  border-radius: 2px;
}

.retro-mode #chat-list .chat-history-item.active-chat {
  background-color: var(--chat-item-active-bg-light);
  border: 2px solid #000;
  border-radius: 2px;
}

.retro-mode .account {
  background-color: var(--Account-bg-light);
}

.retro-mode .date-divider {
  color: #2d2d2d;
  border-bottom: 1px solid #2d2d2d;
}

.retro-mode svg {
  fill: #555;
}

.retro-mode .styled-code-inline {
  background-color: color-mix(in srgb, var(--bot-bubble) 90%, black 20%);
  color: var(--bot-text) !important;
}

.retro-mode .styled-code {
  background-color: color-mix(in srgb, var(--bot-bubble) 90%, black 20%);
}

.retro-mode .modal-content .styled-code {
  background-color: var(--bot-bubble);
  filter: brightness(0.8);
  border: 2px solid var(--bot-bubble);
  filter: brightness(0.7);
  color: var(--bot-text) !important;
}

.retro-mode .styled-link {
  color: #1a0dab;
}

.retro-mode .styled-link:hover {
  color: #4285f4;
  text-decoration: underline;
  -webkit-tap-highlight-color: transparent;
  background-color: transparent;
}

.retro-mode .chat-history-container::-webkit-scrollbar-track {
  background: var(--scroll-track2);
}

.retro-mode .chat-options-menu {
  border: 2px solid #000;
  border-radius: 2px !important;
}

.retro-mode .global-dropdown-menu {
  border: 2px solid #000;
  border-radius: 2px;
}

.retro-mode .options-menu {
  border: 2px solid #000;
  border-radius: 2px;
  background-color: var(--menu-bgr-light);
}

.retro-mode .bubble .links-button {
  background-color: color-mix(in srgb, var(--bot-bubble) 70%, black 5%);
  color: var(--bot-text);
  border-radius: 2px;
  border: 2px solid #000;
}

.retro-mode .links-modal-content {
  background-color: color-mix(in srgb, var(--bot-bubble) 70%, white 50%);
  color: var(--bot-text);
  border-radius: 2px;
  border: 2px solid #000;
}

.retro-mode .account {
  background-color: #e6e6e6;
}

.retro-mode .modal-content {
  background-color: #ddd;
  color: #000;
  border: 2px solid #000;
  border-radius: 2px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.retro-mode .modal-input {
  background-color: #ccc;
  color: #000;
  border: 2px solid #000;
  border-radius: 2px;
}

.retro-mode .btn-cancel {
  background-color: #ccc;
  color: #000;
  border: 2px solid #000;
  border-radius: 2px;
}

.retro-mode .memory-popover {
  background: #ddd;
  border: 2px solid #000;
  border-radius: 2px;
}

.retro-mode .popover-close-btn {
  color: #222;
}

.retro-mode .popover-title {
  color: #222;
}

.retro-mode .popover-fact-list {
  background-color: #ccc;
  color: #222;
  border: 2px solid #000;
  border-radius: 2px;
}

.retro-mode .btn-manage-memory {
  background: #007aff;
  color: #fff !important;
  border: 2px solid #000;
  border-radius: 2px;
}

.retro-mode .btn-create {
  background-color: #007aff;
  color: #fff !important;
  border: 2px solid #000;
  border-radius: 2px;
}

.retro-mode .ai-disclaimer {
  color: #000;
}

.light-mode .links-modal-content a {
  color: var(--bot-text);
  border-radius: 2px;
  border: 2px solid #000;
}

.light-mode .links-modal-content h3 {
  border-bottom: 2px solid #000;
}

.light-mode .links-modal-close {
  background: color-mix(in srgb, var(--bot-bubble) 80%, black 2%);
  color: var(--bot-text);
  border-radius: 2px;
  border: 2px solid #000;
}

.shadow-mode {
  background-color: #000;
  color: #fff;
  color-scheme: dark;
}

.shadow-mode #chat-list .umbennen {
  color: #555;
}

.shadow-mode .suggestion-box {
  background-color: var(--suggestion-light);
  color: var(--dynamic-text-color);
}

.shadow-mode .suggestion-box::after {
  border-top: 5px solid var(--suggestion-light);
}

.shadow-mode .chat-container {
  background-color: #000 !important;
}

.shadow-mode .chat-messages {
  background-color: #000;
}

.shadow-mode #chat-search {
  background-color: #000;
  border: 1px solid #222;
  border-radius: 25px;
}

.shadow-mode #create-folder-btn {
  background: #000;
  color: #fff !important;
  border: 1px solid #222;
  border-radius: 25px;
}

.shadow-mode #create-folder-btn:hover {
  transform: scale(1.05);
}

.retro-mode .modal-content-folder {
  background-color: #000;
  color: #fff;
  border: 1px solid #222;
}

.retro-mode .modal-input {
  background-color: #000;
  color: #fff;
  border: 1px solid #222;
}

.shadow-mode .feedback-link {
  opacity: 0.5;
  filter: brightness(50%);
  color: var(--chat-item-bg-light) !important;
}

.shadow-mode .feedback-link:hover {
  color: var(--chat-item-bg-light) !important;
  filter: brightness(30%);
}

.shadow-mode .Icon {
  color: #fff !important;
}

.shadow-mode html {
  overscroll-behavior: none;
  color-scheme: #000000;
}

.shadow-mode body {
  background-color: #000000 !important;
  height: 100vh;
}

.shadow-mode .message.bot .bubble {
  background-color: #000 !important;
  color: #fff !important;
  border: 1px solid #222;
  border-radius: 25px;
}

.shadow-mode .message.user .bubble {
  background-color: #111 !important;
  color: #fff !important;
  border: 1px solid #111;
  border-radius: 25px;
}

.shadow-mode .chat-input {
  background: transparent !important;
  border: none;
}

.shadow-mode .chat-input textarea:focus {
  border: 1px solid #222 !important;
  border-radius: 25px;
  background-color: #000 !important;
}

.shadow-mode .chat-input textarea {
  border: 1px solid #222 !important;
  border-radius: 25px;
  background-color: #000 !important;
  color: #fff;
}

.shadow-mode .chat-input textarea::placeholder {
  color: #fff;
}

.shadow-mode .chat-input button {
  background-color: #000;
  border: 1px solid #222 !important;
  border-radius: 25px;
}

.shadow-mode .chat-input button#stopButton {
  background-color: #000;
  border: 1px solid #222 !important;
  border-radius: 25px;
}

.shadow-mode .chat-input #sendButton:hover {
  background-color: #000;
  border: 1px solid #222 !important;
  border-radius: 25px;
}

.shadow-mode .chat-input #voice-chat:hover {
  background-color: #000;
  border: 1px solid #222 !important;
  border-radius: 25px;
}

.shadow-mode .chat-input button#stopButton:hover {
  background-color: #000;
  border: 1px solid #222 !important;
  border-radius: 25px;
}

.shadow-mode #chat-header {
  background-color: #000;
  color: #333;
}

.shadow-mode #dictationButton {
  background-color: transparent;
  color: white;
  border: none !important;
}

.shadow-mode #dictationButton:hover {
  background-color: transparent;
}

.shadow-mode .links-modal-close {
  background-color: color-mix(in srgb, var(--bot-bubble) 70%, black 5%);
  color: var(--bot-text);
}

.shadow-mode .links-modal-close:hover {
  background-color: color-mix(in srgb, var(--bot-bubble) 70%, black 3%);
}

.shadow-mode .menu {
  background-color: #000;
  border-right: 1px solid #222;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  border-bottom-right-radius: 40px;
  border-top-right-radius: 40px;
  color: #fff !important;
}

.shadow-mode a:hover {
  opacity: 0.8;
  background-color: #bfbfbf;
}

.shadow-mode .chat-history-container {
  background-color: #000;
  border: 1px solid #222;
  border-radius: 25px;
  height: 580px;
  color: #fff !important;
}

.shadow-mode .chat-history-container::-webkit-scrollbar-track {
  background: var(--scroll-track-light) !important;
}

.shadow-mode .chat-history-container::-webkit-scrollbar {
  width: 8px;
}

.shadow-mode .chat-history-container::-webkit-scrollbar-thumb {
  background: var(--scroll-light);
}

.shadow-mode .chat-history-container::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-track-light-hover);
}

.shadow-mode .chat-history-item {
  background-color: #000;
  color: #fff !important;
  border: 1px solid #222;
  border-radius: 25px;
}

.shadow-mode .chat-history-item:hover {
  background-color: #000;
}

.shadow-mode .active-chat {
  background-color: #000;
  border: 2px solid #222;
  border-radius: 25px;
}

.shadow-mode #chat-history-container .Chatnew {
  background: #000;
  color: fff;
  border: 1px solid #222 !important;
  border-radius: 25px;
}

.shadow-mode #chat-list .chat-history-item.active-chat {
  background-color: #000;
  border: 2px solid #222;
  border-radius: 25px;
}

.shadow-mode .account {
  background-color: #000;
}

.shadow-mode .date-divider {
  color: #2d2d2d;
  border-bottom: 1px solid #2d2d2d;
}

.shadow-mode svg {
  fill: #fff !important;
  color: #fff !important;
}

.shadow-mode .styled-code-inline {
  background-color: color-mix(in srgb, var(--bot-bubble) 90%, black 20%);
  color: var(--bot-text) !important;
}

.shadow-mode .styled-code {
  background-color: color-mix(in srgb, var(--bot-bubble) 90%, black 20%);
}

.shadow-mode .modal-content .styled-code {
  background-color: var(--bot-bubble);
  filter: brightness(0.8);
  border: 2px solid var(--bot-bubble);
  filter: brightness(0.7);
  color: var(--bot-text) !important;
}

.shadow-mode .styled-link {
  color: #1a0dab;
}

.shadow-mode .styled-link:hover {
  color: #4285f4;
  text-decoration: underline;
  -webkit-tap-highlight-color: transparent;
  background-color: transparent;
}

.shadow-mode .chat-history-container::-webkit-scrollbar-track {
  background: var(--scroll-track2);
}

.shadow-mode .chat-options-menu {
  border: 1px solid #222;
  background-color: #000 !important;
  border-radius: 25px;
  color: #fff !important;
  fill: #fff !important;
}

.shadow-mode .global-dropdown-menu {
  border: 1px solid #222;
  background-color: #000 !important;
  border-radius: 25px;
  color: #fff !important;
  fill: #fff !important;
}

.shadow-mode .options-menu {
  border: 1px solid #222;
  background-color: #000 !important;
  border-radius: 25px;
  color: #fff !important;
  fill: #fff !important;
}

.shadow-mode .bubble .links-button {
  border: 1px solid #222;
  border-radius: 20px;
  background-color: #000;
  color: white;
}

.shadow-mode .links-modal-content {
  background-color: #000;
  color: #fff;
  border: 1px solid #222;
  border-radius: 25px;
}

.shadow-mode .links-modal-close {
  background-color: #000;
  color: #fff;
  border: 1px solid #222;
  border-radius: 25px;
}

.shadow-mode .bubble .links-button {
  background-color: #000;
  border: 1px solid #222;
  color: var(--bot-text);
}

.light-mode .links-modal-content {
  background-color: #000;
  color: var(--bot-text);
}

.shadow-mode .links-modal-content a {
  color: var(--bot-text);
}

.shadow-mode .links-modal-content a:hover {
  background-color: #000;
}

.shadow-mode .links-modal-content h3 {
  border-bottom: 2px solid #111;
}

.shadow-mode .links-modal-close {
  background: #000;
  color: var(--bot-text);
  border: 1px solid #222;
}

.shadow-mode .modal-content {
  background-color: #000;
  color: #fff;
  border: 1px solid #222;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.shadow-mode .modal-input {
  background-color: #000;
  color: #fff;
  border: 1px solid #222;
}

.shadow-mode .btn-cancel {
  background-color: #000;
  border: 1px solid #222;
  color: #fff;
}

.shadow-mode .btn-create {
  background-color: #007aff;
  color: #fff !important;
}

.shadow-mode .btn-cancel {
  background-color: #000;
  color: #fff;
}

.shadow-mode .memory-popover {
  background: #000;
  color: #fff;
  border: 1px solid #222;
}

.shadow-mode .popover-close-btn {
  color: #fff;
}

.shadow-mode .popover-title {
  color: #fff;
}

.shadow-mode .popover-fact-list {
  background-color: #000;
  color: #fff;
  border: 1px solid #222;
}

.shadow-mode .btn-manage-memory {
  background: #007aff;
  color: #fff !important;
}

.shadow-mode .ai-disclaimer {
  color: #222;
}

@media (min-width: 481px) and (max-width: 768px) {
  .chat-container {
    width: 100% !important;
    margin: 0 auto;
  }

  .chat-input {
    width: 100% !important;
  }

  .chat-input input {
    font-size: 16px;
    padding: 10px;
    max-width: 720px;
  }

  .chat-input button {
    border: none;
    border-radius: 100%;
    padding: 4px 5px;
    font-size: 14px;
    width: 40px !important;
    height: 40px !important;
    margin-right: 10px !important;
    margin-left: 5px !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #chat-history-container {
    height: 77% !important;
    max-height: 460px !important;
    min-height: 330px !important;
  }

  .chat-messages {
    background-size: 300px !important;
    padding-bottom: 50px !important;
  }

  .chat-input textarea {
    width: 98% !important;
    padding-right: 8% !important;
  }

  #dictationButton {
    right: 10px !important;
    height: 30px !important;
    width: 30px !important;
    margin-left: 0 !important;
  }

  .message.bot .bubble .styled-table {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .chat-container {
    width: 100% !important;
    margin: 0 auto;
  }

  .chat-input {
    width: 103% !important;
  }

  .chat-input input {
    font-size: 14px;
    padding: 8px;
    width: 100% !important;
  }

  .chat-input button {
    border: none;
    border-radius: 100%;
    padding: 4px 5px;
    font-size: 14px;
    width: 40px !important;
    height: 40px !important;
    margin-right: 2px !important;
    margin-left: 5px !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #chat-history-container {
    height: 69% !important;
    max-height: 428px !important;
    min-height: 298px !important;
  }

  .chat-messages {
    background-size: 300px !important;
    padding-bottom: 60px !important;
  }

  .chat-input textarea {
    width: 98% !important;
    padding-right: 10% !important;
  }

  #dictationButton {
    right: 10px !important;
    height: 30px !important;
    width: 30px !important;
    margin-left: 0 !important;
  }

  .ai-disclaimer {
    position: fixed;
    bottom: 4px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 9px;
  }
}

@media (max-width: 375px) {
  .chat-container {
    width: 100% !important;
    padding: 8px !important;
  }

  .chat-input {
    width: 103% !important;
  }

  .chat-input input {
    font-size: 13px;
    padding: 8px 10px;
    max-width: 330px;
    width: 100% !important;
  }

  .chat-input button {
    width: 36px !important;
    height: 36px !important;
    margin-right: 2px !important;
    margin-left: 5px !important;
    font-size: 13px;
    padding: 4px 6px;
  }

  #chat-history-container {
    height: 61% !important;
    max-height: 320px !important;
    min-height: 320px !important;
  }

  .chat-messages {
    background-size: 250px !important;
    padding-bottom: 50px !important;
  }

  .chat-input textarea {
    width: 98% !important;
    padding-right: 10% !important;
  }

  #dictationButton {
    right: 10px !important;
    height: 30px !important;
    width: 30px !important;
    margin-left: 0 !important;
  }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
  .chat-container {
    width: 100% !important;
    margin: 0 auto;
  }

  .chat-input {
    width: 104% !important;
    padding: 12px;
  }

  .chat-input textarea {
    width: 99% !important;
    font-size: 14px;
    padding: 10px 14px;
    padding-right: 8% !important;
  }

  .chat-input button {
    border: none;
    border-radius: 100%;
    width: 38px !important;
    height: 38px !important;
    font-size: 13px;
    padding: 4px;
    margin-right: 10px !important;
    margin-left: 5px !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #dictationButton {
    right: 2px !important;
    height: 30px !important;
    width: 30px !important;
    margin-left: 0 !important;
  }

  .chat-messages {
    background-size: 280px !important;
    padding-bottom: 55px !important;
  }

  #chat-history-container {
    height: 79% !important;
    max-height: 1500px !important;
    min-height: 500px !important;
  }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
  .chat-container {
    width: 100% !important;
    margin: 0 auto;
  }

  .chat-input {
    width: 104% !important;
    padding: 16px 20px;
    gap: 12px;
  }

  .chat-input textarea {
    width: 101% !important;
    font-size: 15px;
    padding: 12px 18px;
    padding-right: 8% !important;
  }

  .chat-input button {
    border: none;
    border-radius: 50%;
    width: 44px !important;
    height: 44px !important;
    font-size: 14px;
    padding: 5px;
    margin-left: 10px !important;
    margin-right: 5px !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #dictationButton {
    right: -10px !important;
    height: 30px !important;
    width: 30px !important;
    margin-left: 0 !important;
  }

  .chat-messages {
    background-size: 320px !important;
    padding-bottom: 60px !important;
  }

  #chat-history-container {
    height: 80% !important;
    max-height: 450px !important;
    min-height: 350px !important;
  }
}

@media screen and (min-width: 1400px) {
  .chat-input {
    padding-left: 1%;
    padding-right: 20%;
  }

  .chat-input .textarea-container {
    margin-right: 35px;
  }

  .chat-input .textarea-container #userInput {
    width: 104.5%;
  }

  .chat-input button {
    margin-right: -37px;
  }
}
