/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default padding */
ul[class],
ol[class] {
  padding: 0;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
figure,
blockquote,
dl,
dd {
  margin: 0;
}


/* Set core body defaults */
body {
  min-height: 100svh;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
  background-color: #183F36;
  /* background-image: 
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px); */
  background-size: 20px 20px;
  color: #FFFFFF;
}

body {
  
}

/* Remove list styles on ul, ol elements with a class attribute */
ul[class],
ol[class] {
  list-style: none;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img {
  max-width: 100%;
  display: block;
}

/* Natural flow and rhythm in articles by default */
article > * + * {
  margin-top: 1em;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

.hide {
  display: none;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100svh;
  padding: 32px;
/*  background-color: #ffffff;*/
  max-width: 1280px;
  margin-inline: auto;
  width: 100%;
  gap: 16px;
}


.chat__container {
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  height: calc(100vh - 200px); /* Adjust based on your header/footer height */
  padding-right: 10px;
}

.chat__container::-webkit-scrollbar {
  width: 8px;
  display: block;
}

.chat__container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.chat__container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.chat__container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.chat__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
  margin-bottom: 32px;
  padding-right: 8px;
  align-items: stretch;
}

.chat__title-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 32px;
  gap: 16px;
}

.chat-start__logo {
  width: 180px;
}

.chat__logo {
  width: 120px;
}

.chat__title {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;

  @media screen and (max-width: 500px) {
    font-size: 32px;
  }

  @media screen and (max-width: 400px) {
    font-size: 24px;
  }
}

.chat__title-badge {
  background-color: #005077;
  border: 1px solid #51676e;
  border-radius: var(--radius-full, 1000px);
  padding-inline: 12px;
  padding-block: 4px;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 2px;
  color: #FFFFFF;

  @media screen and (max-width: 500px) {
    font-size: 12px;
  }
}

.chat__title-active {
  width: 100%;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 32px;
  position: relative;
}

.chat__close-btn {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

.chat__close-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chat__close-btn:active {
  transform: translateY(1px);
}

.chat__close-btn img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.chat__close-btn:hover img {
  transform: rotate(180deg);
}

.fade-out-transition {
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.fade-out-transition.fade-out {
  opacity: 0;
}

.fade-out {
  animation: fadeOut 0.5s;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.chat__subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #FFFFFF;
  max-width: 600px;
  opacity: 0.9;
}

.chat__user-wrapper {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  gap: 16px;
  flex-shrink: 0;
  width: 100%;
}

.chat__input-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.chat__user-input {
  display: flex;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #101828;
  width: 100%;
  resize: none;
  outline: none;
  min-height: 44px;
  max-height: 120px;
  overflow-y: scroll;
  line-height: 1.5;
  font-size: 14px;
  background-color: #FFFFFF;
  color: #183F36;
}

.chat__user-input::-webkit-scrollbar {
  width: 6px;
  display: block;
}

.chat__user-input::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
  margin: 2px 0;
}

.chat__user-input::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.chat__user-input::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Firefox scrollbar styling */
.chat__user-input {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.05);
}

.chat__input-btn {
  background-color: #f68e1e;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0px 2px 4px rgba(246, 142, 30, 0.2);
  border: 1px solid #f68e1e;
  cursor: pointer;
  border-radius: 8px;
  padding: 10px 14px;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* File upload button specific styles */
.chat__input-btn.file-btn {
  min-width: 44px;
  padding: 10px;
  background-color: #005077;
  border-color: #005077;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat__input-btn.file-btn img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  margin: 0;
  display: block;
}

.chat__input-btn.file-btn:hover {
  background-color: #006699;
  transform: translateY(-2px);
  box-shadow: 0px 4px 8px rgba(0, 80, 119, 0.3);
}

.chat__input-btn.file-btn:active {
  background-color: #004066;
  transform: translateY(1px);
  box-shadow: 0px 2px 4px rgba(0, 80, 119, 0.2);
}

.chat__input-btn.file-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

@media screen and (max-width: 500px) {
  .chat__input-btn {
    min-width: fit-content;
    height: 100%;
  }
}

.chat__input-btn:hover {
  background-color: #e07d0d;
}

.chat__input-btn:active {
  background-color: #d06c0c;
}

.chat__questions {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 500px;
}

.chat__questions-btn {
  background-color: #005077;
  color: #FFFFFF;
  font-size: 14px;
  border: 1px solid #005077;
  padding: 4px 12px;
  width: fit-content;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.chat__questions-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.chat__questions-btn:hover {
  background-color: #006699;
  color: #FFFFFF;
  box-shadow: 0px 4px 12px rgba(0, 80, 119, 0.3);
  transform: translateY(-2px);
}

.chat__questions-btn:hover::before {
  left: 100%;
}

.chat__questions-btn:active {
  background-color: #004066;
  transform: translateY(1px);
  box-shadow: 0px 2px 6px rgba(0, 80, 119, 0.2);
}

/* Hover effect */
.chat__questions-btn:hover {
  background-color: #004066;
  color: #FFFFFF;
  box-shadow: 0px 4px 12px rgba(0, 80, 119, 0.2);
}


.chat__user-message,
.chat__bot-message {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 75%;
  background-color: transparent;
}

.chat__user-message {
  align-self: flex-end;
  background-color: rgba(0, 80, 119, 0.4);
  border: 1px solid rgba(81, 103, 110, 0.5);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  max-width: 65%;
  min-width: 200px;
}

.chat__user-message::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, #00866e, #00a884);
  border-radius: 0 8px 8px 0;
}

.chat__user-text {
  font-family: 'Inter', sans-serif;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  color: #FFFFFF;
  line-height: 1.6;
  font-size: 15px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat__bot-message {
  background-color: rgba(246, 142, 30, 0.15);
  border: 1px solid rgba(246, 142, 30, 0.4);
  box-shadow: 0 4px 12px rgba(246, 142, 30, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  max-width: 80%;
  min-width: 250px;
  align-self: flex-start;
}

.chat__bot-message::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, #f68e1e, #ff9d2e);
  border-radius: 8px 0 0 8px;
}

/* Removed hover effects for AI messages */

.chat__user-message:hover {
  background-color: rgba(0, 80, 119, 0.5);
  border-color: rgba(81, 103, 110, 0.6);
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

/* Responsive design for chat messages */
@media screen and (max-width: 768px) {
  .chat__user-message,
  .chat__bot-message {
    max-width: 85%;
  }
  
  .chat__user-message {
    min-width: 150px;
  }
  
  .chat__bot-message {
    min-width: 200px;
  }
}

@media screen and (max-width: 480px) {
  .chat__user-message,
  .chat__bot-message {
    max-width: 90%;
  }
  
  .chat__user-message {
    min-width: 120px;
  }
  
  .chat__bot-message {
    min-width: 150px;
  }
}

/* Special styling for greeting messages */
.chat__bot-message.greeting-message {
  background-color: rgba(246, 142, 30, 0.15);
  border-color: rgba(246, 142, 30, 0.4);
  box-shadow: 0 4px 12px rgba(246, 142, 30, 0.2);
}

.chat__bot-message.greeting-message::before {
  background: linear-gradient(135deg, #f68e1e, #ff9d2e);
  width: 6px;
}


.chat__bot-text {
  font-family: 'Inter', sans-serif;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  color: #FFFFFF;
  line-height: 1.6;
  font-size: 15px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat__bot-text p {
  margin: 0 0 1em;
  color: #FFFFFF;
}

.chat__bot-text p:last-child {
  margin-bottom: 0;
}

.chat__bot-text h1,
.chat__bot-text h2,
.chat__bot-text h3,
.chat__bot-text h4,
.chat__bot-text h5,
.chat__bot-text h6 {
  color: #f68e1e;
  margin: 1em 0 0.5em;
  font-weight: 600;
}

.chat__bot-text h1:first-child,
.chat__bot-text h2:first-child,
.chat__bot-text h3:first-child,
.chat__bot-text h4:first-child,
.chat__bot-text h5:first-child,
.chat__bot-text h6:first-child {
  margin-top: 0;
}

.chat__bot-text strong {
  font-weight: bold;
  color: #FFFFFF;
}

.chat__bot-text em {
  font-style: italic;
  color: #FFFFFF;
}

.chat__bot-text a {
  color: #f68e1e;
  text-decoration: none;
}

.chat__bot-text a:hover {
  text-decoration: underline;
}

.chat__bot-text ul,
.chat__bot-text ol {
  margin: 0 0 1em 1.5em;
  color: #FFFFFF;
  padding-left: 1em;
}

.chat__bot-text ul li,
.chat__bot-text ol li {
  margin-bottom: 0.5em;
  line-height: 1.5;
}

.chat__bot-text ul li:last-child,
.chat__bot-text ol li:last-child {
  margin-bottom: 0;
}

.chat__bot-text ul li::marker {
  color: #f68e1e;
}

.chat__bot-text ol li::marker {
  color: #f68e1e;
  font-weight: 600;
}

.chat__bot-text code {
  background-color: rgba(0, 80, 119, 0.3);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: monospace;
  color: #FFFFFF;
  border: 1px solid rgba(0, 80, 119, 0.5);
}

.chat__bot-text pre {
  background-color: rgba(0, 80, 119, 0.2);
  padding: 1em;
  border-radius: 8px;
  border: 1px solid rgba(0, 80, 119, 0.4);
  overflow-x: auto;
  margin: 1em 0;
}

.chat__bot-text pre code {
  background-color: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
}

.chat__bot-func {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
}

.chat__bot-func-buttons button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  filter: brightness(0) invert(1); /* Make icons white */
  opacity: 0.7;
}

.chat__bot-func-buttons button:hover {
  /* Removed transform to prevent scaling */
  opacity: 1;
}

.chat__bot-func-buttons button:active {
  /* Removed transform to prevent scaling */
}

.chat__bot-logo {
  display: flex;
  max-width: 100px;
  height: 40px;
  opacity: 0.7;
}

.chat__bot-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.chat__bot-reply {
  position: relative;
  min-height: 24px;
  padding-left: 8px;
  padding-top: 4px;
}

.chat__bot-reply svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  transition: all opacity 0.3s ease;
  animation: spin 2s linear infinite;
  visibility: hidden;
  filter: brightness(0) invert(1); /* Make loading spinner white */
}

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

/* Dynamic AI Loading Animation */
.chat__bot-reply.loading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(246, 142, 30, 0.05) 0%, 
    rgba(246, 142, 30, 0.2) 25%, 
    rgba(246, 142, 30, 0.3) 50%, 
    rgba(246, 142, 30, 0.2) 75%, 
    rgba(246, 142, 30, 0.05) 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Typing dots animation */
.chat__bot-reply .typing-indicator {
  position: absolute;
  left: 0;
  top: 0;
  margin-left: 24px;
  color: rgba(246, 142, 30, 0.8);
  font-size: 14px;
  font-weight: 500;
  z-index: 2;
  display: none; /* Hidden by default */
}

.chat__bot-reply.loading .typing-indicator {
  display: block; /* Only show when loading */
}

.chat__bot-reply.loading .typing-indicator::after {
  content: '';
  animation: aiWorking 8s ease-in-out infinite;
}

@keyframes aiWorking {
  0%, 20% {
    content: 'AI is thinking...';
  }
  25%, 45% {
    content: 'Processing information...';
  }
  50%, 70% {
    content: 'Formulating response...';
  }
  75%, 100% {
    content: 'Finalizing answer...';
  }
}

/* Progress bar animation */
.chat__bot-reply.loading .loading-progress {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(246, 142, 30, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.chat__bot-reply.loading .loading-progress::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, 
    rgba(246, 142, 30, 0.5), 
    rgba(246, 142, 30, 1), 
    rgba(246, 142, 30, 0.5));
  animation: progressMove 4s ease-in-out infinite;
}

@keyframes progressMove {
  0% {
    left: -30%;
  }
  100% {
    left: 100%;
  }
}



/* Pulse animation for the AI icon */
.chat__bot-reply.loading .ai-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: rgba(246, 142, 30, 0.8);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.chat__bot-reply .ai-talking {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-top: 4px;
  font-style: italic;
}

.chat__bot-citations {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  margin-top: 8px;
  font-style: italic;
}

.chat-start {
  width: 100%;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* .chat-start::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 500px;
  max-height: 500px;
  width: 100%;
  height: 100%;
  background-image: url('/images/bg-grid-pattern.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  z-index: -1;
} */


@keyframes ripple-animation {
  0% {
    background-size: 100%;
    background-position: 50% 50%;
  }
  50% {
    background-size: 150%;
    background-position: 50% 50%;
  }
  100% {
    background-size: 100%;
    background-position: 50% 50%;
  }
}

.chat-start__bg-1 {
  background: linear-gradient(#51676e, #00866e);
  background-size: 100%;
  background-position: center;
  height: 100vh;
  width: 100%;
}




.chat-start__bg-2 {
  background-color: #0073ff;
  background-image: radial-gradient(
      at 71% 81%,
      hsla(249, 90%, 67%, 1) 0,
      hsla(249, 90%, 67%, 0) 50%
    ),
    radial-gradient(
      at 64% 4%,
      hsla(278, 91%, 67%, 1) 0,
      hsla(278, 91%, 67%, 0) 50%
    ),
    radial-gradient(
      at 94% 99%,
      hsla(184, 92%, 64%, 1) 0,
      hsla(184, 92%, 64%, 0) 50%
    ),
    radial-gradient(
      at 16% 36%,
      hsla(158, 90%, 61%, 1) 0,
      hsla(158, 90%, 61%, 0) 50%
    );
}

.chat-start__bg-3 {
  background-color: #86e4f9;
  background-image: radial-gradient(
      at 13% 45%,
      hsla(302, 93%, 54%, 1) 0,
      hsla(302, 93%, 54%, 0) 50%
    ),
    radial-gradient(
      at 78% 33%,
      hsla(261, 94%, 61%, 1) 0,
      hsla(261, 94%, 61%, 0) 50%
    ),
    radial-gradient(
      at 31% 30%,
      hsla(239, 94%, 55%, 1) 0,
      hsla(239, 94%, 55%, 0) 50%
    ),
    radial-gradient(
      at 45% 15%,
      hsla(200, 94%, 56%, 1) 0,
      hsla(200, 94%, 56%, 0) 50%
    );
}

.chat-start__bg-4 {
  background-color: #ff99d5;
  background-image: radial-gradient(
      at 20% 9%,
      hsla(239, 75%, 69%, 1) 0px,
      transparent 50%
    ),
    radial-gradient(at 84% 85%, hsla(194, 99%, 71%, 1) 0px, transparent 50%),
    radial-gradient(at 71% 42%, hsla(202, 84%, 74%, 1) 0px, transparent 50%),
    radial-gradient(at 55% 83%, hsla(193, 69%, 72%, 1) 0px, transparent 50%),
    radial-gradient(at 67% 49%, hsla(199, 65%, 73%, 1) 0px, transparent 50%),
    radial-gradient(at 65% 38%, hsla(237, 63%, 63%, 1) 0px, transparent 50%),
    radial-gradient(at 14% 2%, hsla(320, 61%, 77%, 1) 0px, transparent 50%);
}

.chat-start__bg-5 {
  background-image: url('/images/ffflux.svg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  h1,
  p {
    color: #101828;
  }
}

.chat-start__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  margin: 0 auto;
  max-width: 1280px;
}

.chat__wrapper {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  height: 100%;
  margin-top: 16px;
}

.chat-start__title {
  text-align: center;
  color: #ffffff;
  margin-bottom: 16px;
}

.chat-start__title h2 {
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-start__title p {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.chat-start__logo {
  width: 160px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.chat-start__logo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

#start-chat {
  background: linear-gradient(135deg, #f68e1e 0%, #ff9d2e 100%);
  border: none;
  padding: 12px 32px;
  font-size: 18px;
  font-weight: 500;
  min-width: 280px;
  box-shadow: 0px 4px 12px rgba(246, 142, 30, 0.3);
}

#start-chat:hover {
  background: linear-gradient(135deg, #ff9d2e 0%, #ffa940 100%);
  transform: translateY(-2px);
  box-shadow: 0px 6px 16px rgba(246, 142, 30, 0.4);
}

#start-chat:active {
  background: linear-gradient(135deg, #e07d0d 0%, #f68e1e 100%);
  transform: translateY(1px);
  box-shadow: 0px 2px 8px rgba(246, 142, 30, 0.3);
}

@media screen and (max-width: 768px) {
  #logout-btn {
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    font-size: 13px;
  }
  
  #logout-btn i {
    font-size: 14px;
  }

  .chat-start__title h2 {
    font-size: 1.8em;
  }

  .chat-start__title p {
    font-size: 0.95em;
  }

  .chat-start__logo {
    width: 140px;
  }

  #start-chat {
    padding: 12px 24px;
    font-size: 15px;
    min-width: 240px;
  }
}

@media screen and (max-width: 480px) {
  .chat-start__title h2 {
    font-size: 1.6em;
  }

  .chat-start__title p {
    font-size: 0.9em;
  }

  .chat-start__logo {
    width: 120px;
  }

  #start-chat {
    padding: 10px 20px;
    font-size: 14px;
    min-width: 200px;
  }
}

.chat__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 300px;
  width: 100%;
}

.chat__form-group {
  max-width: 300px;
  width: 100%;
  margin-bottom: 8px;
}

.chat-start__input {
  border-radius: 8px;
  padding: 10px 14px;
  border: 1px solid #51676e;
  background: #FFFFFF;
  max-width: 300px;
  width: 100%;
  outline: none;
  color: #183F36;
}

/* Hover State */
.chat-start__input:hover {
  border-color: #f68e1e;
}

.chat-start__input-button:hover {
  background: #ff9d2e;
}


/* Active/Focus State */
.chat-start__input:focus, .chat-start__input:active {
  border-color: #f68e1e;
  border-width: 2px;
  outline: none;
}


.chat-start__input::placeholder {
  color: #a09f9f;
}

.invalid-input {
  min-height: 48px;
  border: 1px solid rgb(247, 4, 4);
}

.error-message {
  color: rgb(247, 4, 4);
  margin-top: 5px;
  font-size: 0.8em;
  font-size: 14px;
}

.chat__form button {
  background-color: #f68e1e;
  color: #FFFFFF;
  cursor: pointer;
  border: 1px solid #f68e1e;
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0px 2px 4px rgba(246, 142, 30, 0.2);
  max-width: 300px;
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.chat__form button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.chat__form button:hover {
  background-color: #ff9d2e;
  /* Removed transform to prevent movement */
  box-shadow: 0px 4px 8px rgba(246, 142, 30, 0.3);
}

.chat__form button:hover::before {
  left: 100%;
}

.chat__form button:active {
  background-color: #e07d0d;
  /* Removed transform to prevent movement */
  box-shadow: 0px 2px 8px rgba(246, 142, 30, 0.3);
}

/* Focus styles for form buttons */
.chat__form button:focus {
  outline: none;
  box-shadow: 0px 0px 0px 2px rgba(246, 142, 30, 0.2), 0px 4px 8px rgba(246, 142, 30, 0.3);
}

.chat__modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  z-index: 100;
  display: none;
}

.chat__modal-container.show {
  display: flex;
  opacity: 1;
  transition: opacity 0.5s linear;
}


.chat__modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.chat__modal-exit {
  position: fixed;
  right: 50%;
  top: 50%;
  transform: translate(50%, -50%);
  padding: 24px;
  background: #ffffff;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #101828;
  border-radius: 8px;
  max-width: 400px;
  width: 100%;
  z-index: 101;
}

.chat__modal-title {
  color: #101828;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.chat__modal-text {
  color: #475467;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 8px;
}

.chat__modal-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 32px;
}

.chat__modal-btn {
  background-color: #ffffff;
  border: 1px solid #101828;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  color: #101828;
  width: 100%;
}

.chat__modal-btn-close {
  background-color: #f68e1e;
  color: #FFFFFF;
  border: 1px solid #101828;
  transition: all 0.3s ease;
}

.chat__modal-btn-close:hover {
  background-color: #ff9d2e;
  transform: translateY(-2px);
  box-shadow: 0px 4px 8px rgba(246, 142, 30, 0.3);
}

.chat__modal-btn-close:active {
  background-color: #e07d0d;
  transform: translateY(1px);
  box-shadow: 0px 2px 4px rgba(246, 142, 30, 0.2);
}

.chat__privacy {
  display: flex;
  flex-direction: column;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  user-select: none;
  color: #ffffff;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkbox .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #FFFFFF;
  border-radius: 5px;
  border: 1px solid #51676e;
  transition: background-color 0.2s;
}

.custom-checkbox.invalid-checkbox .checkmark {
  border: 1px solid rgb(247, 4, 4);
}

.custom-checkbox:hover input ~ .checkmark {
  background-color: #ccc;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: #f68e1e;
}

.custom-checkbox .checkmark:after {
  content: '';
  position: absolute;
  display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.custom-checkbox .checkmark:after {
  left: 6px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.chat__privacy a {
  color: #cbd5e1;
  text-decoration: underline;
  margin-left: 4px;
}

.chat__privacy a:hover {
  text-decoration: underline;
}

.chat__bot-text p {
  margin: 0 0 1em;
}

.chat__bot-text strong {
  font-weight: bold;
}

.chat__bot-text em {
  font-style: italic;
}

.chat__bot-text a {
  color: #f68e1e;
  text-decoration: none;
}

.chat__bot-text a:hover {
  text-decoration: underline;
}

.chat__bot-text ul,
.chat__bot-text ol {
  margin: 0 0 1em 1.5em;
}

.chat__bot-text code {
  background-color: #005077;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: monospace;
  color: #FFFFFF;
}

.chat__bot-message {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(246, 142, 30, 0.4);
  max-width: 80%;
  min-width: 250px;
  background-color: rgba(246, 142, 30, 0.15);
  align-self: flex-start;
  box-shadow: 0 4px 12px rgba(246, 142, 30, 0.2);
  backdrop-filter: blur(10px);
}

.background-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #183F36;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -2;
}

.chat-start__gradient-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(24, 63, 54, 0.9) 0%, rgba(0, 134, 110, 0.7) 100%);
  z-index: -1;
}

.chat-start__input-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 500;
  background: #f68e1e;
  border: none;
  border-radius: 12px;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0px 4px 12px rgba(246, 142, 30, 0.3);
}

.chat-start__input-button:hover {
  background: #ff9d2e;
  box-shadow: 0px 6px 16px rgba(246, 142, 30, 0.4);
}

.chat-start__input-button:active {
  background: #e07d0d;
  box-shadow: 0px 2px 8px rgba(246, 142, 30, 0.3);
}

.button-arrow {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.chat-start__input-button:hover .button-arrow {
  /* Removed transform to prevent any movement */
}

@media screen and (max-width: 768px) {
  .chat__wrapper {
    margin-top: 60px;
    gap: 16px;
  }

  .chat-start__logo {
    width: 60px;
  }

  .chat-start__title h2 {
    font-size: 1.5em;
  }

  .chat-start__title p {
    font-size: 0.9em;
  }

  .chat__input-btn {
    padding: 8px 12px;
  }
  
  .chat__input-btn .send-text {
    display: none;
  }
  
  .chat__input-btn img {
    margin-left: 0;
  }
}

@media screen and (max-width: 480px) {
  .chat__wrapper {
    margin-top: 80px;
    gap: 12px;
  }

  .chat-start__logo {
    width: 50px;
  }

  .chat-start__title h2 {
    font-size: 1.3em;
  }

  .chat-start__title p {
    font-size: 0.85em;
  }

  .chat__input-btn {
    padding: 6px 10px;
  }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(24, 63, 54, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-content {
  text-align: center;
  color: #FFFFFF;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.loading-overlay.active .loading-content {
  opacity: 1;
  transform: translateY(0);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: #f68e1e;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loading-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Text-to-Speech Toggle Styles */
.chat__tts-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  margin-left: auto; /* Push to the right */
}

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

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

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

.chat__tts-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .chat__tts-slider {
  background-color: #f68e1e;
}

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

.chat__tts-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  user-select: none;
}

/* Container for both hint and TTS toggle */
.chat__input-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px;
  margin-top: 4px;
}

.chat__input-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  user-select: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat__input-hint kbd {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  padding: 1px 4px;
  font-family: monospace;
  font-size: 11px;
  margin: 0 2px;
}

.ai-talking {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-top: 4px;
  font-style: italic;
}

.chat__bot-citations {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  margin-top: 8px;
  font-style: italic;
}

/* Login Page Specific Styles */
.login__footer {
  margin-bottom: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

.login__footer p {
  margin: 8px 0;
  font-size: 14px;
}

.login__footer a {
  color: #f68e1e;
  text-decoration: none;
  transition: color 0.3s ease;
}

.login__footer a:hover {
  color: #ff9d2e;
  text-decoration: underline;
}

/* Update existing login form styles */
#login-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#login-form .chat__form-group {
  margin-bottom: 8px;
}

#login-form .chat-start__input[type="text"],
#login-form .chat-start__input[type="password"] {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

#login-form .chat-start__input[type="text"]::placeholder,
#login-form .chat-start__input[type="password"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

#login-form .chat-start__input[type="text"]:focus,
#login-form .chat-start__input[type="password"]:focus {
  border-color: #f68e1e;
  box-shadow: 0 0 0 2px rgba(246, 142, 30, 0.2);
}

#login-form .chat__form button {
  background-color: #f68e1e;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0px 2px 4px rgba(246, 142, 30, 0.2);
  border: 1px solid #f68e1e;
  cursor: pointer;
  border-radius: 8px;
  padding: 10px 14px;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#login-form .chat__form button:hover {
  background-color: #ff9d2e;
  /* Removed transform to prevent movement */
  box-shadow: 0px 4px 8px rgba(246, 142, 30, 0.3);
}

#login-form .chat__form button:active {
  background-color: #e07d0d;
  /* Removed transform to prevent movement */
  box-shadow: 0px 2px 8px rgba(246, 142, 30, 0.3);
}

/* Logout Button Styles */
#logout-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

#logout-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


#logout-btn i {
  font-size: 16px;
  transition: transform 0.3s ease;
}


@media screen and (max-width: 768px) {
  #logout-btn {
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    font-size: 13px;
  }
  
  #logout-btn i {
    font-size: 14px;
  }
}

/* File attachment styles */
.chat__file-attachment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(0, 80, 119, 0.1);
  border: 1px solid rgba(0, 80, 119, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 8px 16px;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat__file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
}

.chat__file-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.chat__file-name {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat__file-remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.chat__file-remove:hover {
  /* Removed transform to prevent scaling */
}

.chat__file-remove img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.chat__file-remove:hover img {
  opacity: 1;
}

/* Signup form specific styles */
#signup-form .chat__form-group {
  margin-bottom: 8px;
}

/* Reduce spacing between checkbox form groups */
#signup-form .chat__form-group.checkbox-group {
  margin-bottom: 4px;
}

#signup-form .chat__privacy {
  margin: 0;
  padding: 0;
}

#signup-form .custom-checkbox {
  margin: 0;
  padding-left: 35px;
  font-size: 14px;
  line-height: 1.4;
  color: #ffffff;
}

#signup-form .custom-checkbox .checkmark {
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  border-radius: 4px;
}

#signup-form .custom-checkbox .checkmark:after {
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
}

#signup-form .chat__privacy a {
  color: #f68e1e;
  text-decoration: none;
  margin-left: 2px;
}

#signup-form .chat__privacy a:hover {
  text-decoration: underline;
}

#signup-form .error-message {
  margin-top: 2px;
  font-size: 12px;
}

/* Login form specific styles */
#login-form .chat__form-group {
  margin-bottom: 8px;
}

#login-form .chat-start__input:focus {
  border-color: #f68e1e;
  border-width: 2px;
  box-shadow: 0px 0px 0px 2px rgba(246, 142, 30, 0.2);
  outline: none;
}

#login-form .error-message {
  margin-top: 2px;
  font-size: 12px;
}

/* Signup form specific styles */
#signup-form .chat__form-group {
  margin-bottom: 8px;
}

#signup-form .chat-start__input:focus {
  border-color: #f68e1e;
  border-width: 2px;
  box-shadow: 0px 0px 0px 2px rgba(246, 142, 30, 0.2);
  outline: none;
}

/* Reduce spacing between checkbox form groups */
#signup-form .chat__form-group.checkbox-group {
  margin-bottom: 4px;
}

/* Focus styles for checkboxes */
#signup-form .custom-checkbox input:focus + .checkmark {
  border-color: #f68e1e;
  border-width: 2px;
  box-shadow: 0px 0px 0px 2px rgba(246, 142, 30, 0.2);
}

#signup-form .chat__privacy a {
  color: #f68e1e;
  text-decoration: none;
  margin-left: 2px;
}

/* Success message styles */
.success-message {
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.success-content i {
  font-size: 48px;
  color: #4ade80;
  margin-bottom: 8px;
}

.success-content h3 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

.success-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.back-to-login-btn {
  background-color: #f68e1e;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 8px;
}

.back-to-login-btn:hover {
  background-color: #ff9d2e;
  transform: translateY(-2px);
  box-shadow: 0px 4px 8px rgba(246, 142, 30, 0.3);
}

.back-to-login-btn:active {
  background-color: #e07d0d;
  transform: translateY(1px);
  box-shadow: 0px 2px 4px rgba(246, 142, 30, 0.2);
}

/* Password input wrapper and toggle styles */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrapper .chat-start__input {
  padding-right: 50px; /* Make room for the toggle button */
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #183F36;
  font-weight: 500;
}

.password-input-wrapper .chat-start__input:focus {
  background: rgba(255, 255, 255, 1);
  border-color: #f68e1e;
  border-width: 2px;
  box-shadow: 0px 0px 0px 2px rgba(246, 142, 30, 0.2);
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  color: #51676e;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  background: rgba(246, 142, 30, 0.1);
  color: #f68e1e;
}

.password-toggle:focus {
  outline: none;
  background: rgba(246, 142, 30, 0.15);
  color: #f68e1e;
}

.password-toggle i {
  font-size: 16px;
  transition: color 0.3s ease;
}

/* User acknowledgment styles */
.user-acknowledgment {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-greeting {
  color: rgba(255, 255, 255, 0.7);
}

.user-name {
  color: #f68e1e;
  font-weight: 500;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media screen and (max-width: 768px) {
  .user-acknowledgment {
    top: 16px;
    left: 16px;
    font-size: 13px;
  }
  
  .user-name {
    max-width: 150px;
  }
}

@media screen and (max-width: 480px) {
  .user-acknowledgment {
    top: 12px;
    left: 12px;
    font-size: 12px;
  }
  
  .user-name {
    max-width: 120px;
  }
}

/* Authentication footer styles */
.auth-footer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
}

.auth-footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 400;
  margin: 0;
  line-height: 1.4;
}

@media screen and (max-width: 768px) {
  .auth-footer {
    bottom: 16px;
  }
  
  .auth-footer p {
    font-size: 11px;
  }
}

@media screen and (max-width: 480px) {
  .auth-footer {
    bottom: 12px;
  }
  
  .auth-footer p {
    font-size: 10px;
  }
}

/* Content Wrappers */
.chat-content-wrapper {
  min-height: 100vh;
  background-color: #183F36;
}

.index-content-wrapper {
  min-height: 100vh;
  background-color: #183F36;
}

/* Language Selector Styles */
.language-selector {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

.language-btn {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  font-family: 'Inter', sans-serif;
}

.language-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.language-btn i:first-child {
  font-size: 16px;
}

.language-btn i:last-child {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.language-btn.active i:last-child {
  transform: rotate(180deg);
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(24, 63, 54, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 200px;
  max-height: 400px;
  overflow-y: auto;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.language-dropdown.active {
  opacity: 1;
  visibility: visible;
}

.language-dropdown::-webkit-scrollbar {
  width: 6px;
}

.language-dropdown::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.language-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.language-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.language-option {
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-option:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.language-option.active {
  background-color: rgba(246, 142, 30, 0.2);
  color: #f68e1e;
  font-weight: 500;
}

@media screen and (max-width: 768px) {
  .language-selector {
    top: 60px;
  }
  
  .language-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .language-dropdown {
    min-width: 180px;
    max-height: 300px;
  }
  
  .language-option {
    padding: 8px 12px;
    font-size: 13px;
  }
}

@media screen and (max-width: 480px) {
  .language-selector {
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .language-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .language-btn span {
    display: none;
  }
  
  .language-dropdown {
    min-width: 160px;
    left: 0;
    transform: none;
  }
}

/* Language selector specific positioning for chat page */
.language-selector-chat {
  left: auto;
  right: 20px;
  transform: none;
}

.language-selector-chat .language-dropdown {
  left: auto;
  right: 0;
  transform: none;
}

@media screen and (max-width: 768px) {
  .language-selector-chat {
    right: 16px;
  }
}

@media screen and (max-width: 480px) {
  .language-selector-chat {
    right: 12px;
    top: 55px;
  }
  
  .language-selector-chat .language-dropdown {
    right: 0;
  }
}
