:root {
  --brand-color: #5dc99c;
  --brand-color2: #b1b1b1;
    --brand-color3: #5a926b;
  --header-color: #f1f1f1;
  --bg-color: #ffffff;
  --font-main: "Satoshi", ui-sans-serif, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
}

/* General Layout */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: var(--font-main);
  background: linear-gradient(to bottom, #bddaf594, #ebdbf594);
  display: flex;
  flex-direction: column;
  letter-spacing: 0.02rem;
}

#userMessage{
font-family: var(--font-main);
    letter-spacing: 0.02rem;
    font-size: 0.95rem;
columns:#50525b ;
}

/* Header */
.chat-header {
    position: fixed;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    
    padding: 10px 16px;
    box-shadow: 0px 0px 5px 0px #b9b9b952;
    /* background: #e3e3e393; */
    margin: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid #00000011;
}

.chat-header img.twin-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  margin-top: 8px;
  background-color: #fff;
}

.twin-header-text {
  display: flex;
  flex-direction: column;
  justify-content: center;

}



.chat-header h1 {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 480;
  color: #4f4557;
  text-shadow: 0px 1px 0px rgb(255 255 255 / 49%);

}

/* Status text */
.twin-status {
  font-size: 0.75rem;
  color: #696969;
  margin-top: 1px;
  transition: color 0.5s ease;
}

.twin-status.typing {
  font-family: var(--font-main);
  color: #696969;
  animation: glow 0.9s infinite alternate; /* Applies the 'glow' animation */
}

@keyframes glow {
  from {
    color: #ffffff, #000000;
    text-shadow: 0 0 1px #ff00fb, /* Starting glow state */
                 0 0 0px #00a6ff;
  }
  to {
    text-shadow: 0 0 2px #696969, /* Ending glow state */

  }
}
/* Chat Container */
.chat-container {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px;
  /* background: var(--bg-color); */
  margin-top: 80px;
}

.chat-messages {

  display: flex;
  flex-direction: column;
  gap: 12px;
  line-height: 1.5;

}

.message {
    
  padding: 10px 14px;
  border-radius: 15px;
  max-width: 85%;

}

.user-msg {

align-self: flex-end;
padding: 0 14px;
border-bottom-right-radius: 0px;
font-family: var(--font-main);
   
    font-size: 0.9rem;
    backdrop-filter: blur(15px);
    background: #c6b1fc44;
    border: 1px solid #ffffff80;
     box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08), 0 -6px 7px 0px rgba(255, 255, 255, 0.4) inset;
    color: #3c3b41;
    text-shadow: 0px 1px 0px rgb(255 255 255 / 49%);
}

.ai-msg {
    align-self: flex-start;
    border-bottom-left-radius: 0px;
    font-family: var(--font-main);
   
    font-size: 0.9rem;
    backdrop-filter: blur(15px);
    background: #eaf5ff21;
    border: 1px solid #ffffff80;
     box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08), 0 -6px 7px 0px rgba(255, 255, 255, 0.4) inset;
    color: #3c3b41;
    text-shadow: 0px 1px 0px rgb(255 255 255 / 49%);
    }

/* Input Bar */
.chat-input-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
 background: #fff;
  padding: 8px;
  border: 1px solid #d1d1d1ca;
  position: sticky;
  bottom: 0;

    height: 50px;
      border-radius: 50px;
      margin: 5px 10px;
           backdrop-filter: blur(15px);
            box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08), 0 -6px 5px 0px rgba(255, 255, 255, 0.4) inset;
            z-index: 99999;
}

.chat-input-bar textarea {
  flex: 1;
  resize: none;
  border: none;
  border-radius: 20px;
  padding: 14px;
  font-size: 15px;
  outline: none;
  line-height: 1.4;
  margin-left: 2px;
max-width:90%;
margin-right: 45px;

}

.chat-input-bar button {
  width: 50px;
  height: 50px;
  margin-top: 0px;
  border: none;
  border-radius: 50%;
  /* background: var(--brand-color); */
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 28px;
  padding-bottom: 2px;
  padding-left: 6px;
      position: absolute;
    right: 10px;
    box-shadow: 0px 0px 7px 1px #5f4766d6, 0px 0px 6px 1px rgb(255 255 255) inset;
        background: linear-gradient(to left, #c300ffe6, #ff9500);

}

.chat-input-bar button:hover {
  /* background:#39b17f; */

    background: linear-gradient(to right, #c300ffe6, #ff9500);
  /* background: linear-gradient(to bottom, #1d88e4cf,#f161ffd9); */
}

/* Toast */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  opacity: 0.9;
}

.hidden { display: none !important; }
/* --- Mini Avatar & Twin Label (for multi-twin chat) --- */
.twin-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 13px;
  color: #555;
}

.twin-label .mini-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ccc;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
}

.twin-label .mini-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

/* === Group Chat Avatar Bar === */
.group-avatar-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;

  background: #fafafade;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 10px;
  min-height: 50px;
}

.group-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.group-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Highlight twin who's typing */
.group-avatar.typing {
  border-color: #51ff00;
  box-shadow: 0 0 6px 5px rgba(60, 255, 0, 0.507);
}

/* Tooltip with twin name */
.group-avatar::after {
  content: attr(data-name);
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.group-avatar:hover::after {
  opacity: 1;
}
/* Mention Dropdown */

.chat-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-right: 10px;
}
p {
  padding: 0;
  margin: 6px;
}

/* Dropdown anchored just above the textarea */
.mention-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 2000;        /* above footer/send button */
  pointer-events: auto; /* ensure clicks register */
  display: none;
  max-height: 220px;
  overflow-y: auto;
  transform-origin: bottom center;
  animation: growUp 0.15s ease-in;
}

/* Grow bottom→top */
.mention-list {
  display: flex;
  flex-direction: column-reverse;
}

.mention-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
}
.mention-item:hover { background: #f6f6f6; }

.mention-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

@keyframes growUp {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}
.system-msg {
  text-align: center;
  background: #f1f1f1;
  color: #555;
  font-style: italic;
  border-radius: 8px;
  padding: 6px 10px;
  margin: 8px auto;
  max-width: 80%;
}
.ai-msg h1, .ai-msg h2, .ai-msg pre {
    margin: 0;
    font-size: 1rem;
    white-space: pre-wrap;
}
 .loader-overlay {
    position: fixed; inset: 0;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    background: rgba(255,255,255,0.9);
    z-index: 10000;
  }
  .loader-overlay.hidden { display: none; }
  .loader {
    position: absolute;
    width: 50px; height: 50px;
    border: 4px solid #ffffff00;
    border-top: 4px solid #9c5af87d;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    z-index: 999;
    margin-top: -4px;
    margin-right: -4px;

      

  }
  @keyframes spin { 0% {transform:rotate(0)} 100% {transform:rotate(360deg)} }

.twin-header-btn {
 margin-left: auto;
}

.btn-share {
  background: var(--brand-color, var(--share-blue));
  color: var(--surface);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  transition: background 0.2s ease;
  
}
.btn-share:hover {
  background: var(--share-blue-hover);
}
.share-icon {
  
    cursor: pointer;
    transition: transform 0.2s 
ease, opacity 0.2s 
ease;
    width: 32px;
    height: 32px;
    /* background: #6969691f; */
    border-radius: 50%;
    padding: 5px;
    backdrop-filter: blur(14px);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08), 0 -6px 5px 0px rgba(255, 255, 255, 0.4) inset;
    border: 1px solid rgb(255 255 255 / 99%);
}

.share-icon:hover {
  transform: scale(1.1);
  opacity: 0.5;
}
.audio-toggle {
background:none;
border: none;
margin-top: 2px;
cursor: pointer;
margin-left: 4px;
transition: transform 0.2s ease, opacity 0.2s ease;
display: none;
border-radius: 50%;
 

}
.audio-toggle:hover {
    transform: scale(1.1);
    opacity: 0.5;
}

.aiLinks{
  text-decoration: none;
  color: #338194;
  font-weight: 500;
}
/* === AI Message Links === */
.aiLinks {
  color: #10a37f; /* uses brand color fallback if not defined */
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease, text-decoration 0.2s ease;
  word-break: break-word; /* prevents long links from overflowing */
}

.aiLinks:hover {
  text-decoration: underline;
  color: #0ae2bb; /* use secondary shade on hover */
}

/* Optional subtle focus/active effect for accessibility */
.aiLinks:focus,
.aiLinks:active {
  outline: none;
  text-decoration: underline;
  color: #0d9ad1;
}
.aiLinks:visited {
  opacity: 0.85;
}

/* === AI Images (Block Layout) === */
.ai-image-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 12px 0; /* spacing above and below */
  width: 100%;
}


/* Optional caption below image */
.ai-caption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 6px;
  text-align: center;
  font-style: italic;
}

/* Dark mode subtle tweaks */
@media (prefers-color-scheme: dark) {
  .ai-caption {
    color: #aaa;
  }
  .ai-image {
    box-shadow: 0 2px 8px rgba(255,255,255,0.1);
  }
}

    input[type="checkbox"] {
      position: absolute;
      width: 20px; /* Adjust as needed */
      height: 20px; /* Adjust as needed */
     margin-left: -28px;
    }

/* === Modal Viewer === */
.image-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(3px);
}

.image-modal .modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
  animation: fadeIn 0.3s ease;
}

.modal-caption {
  text-align: center;
  color: #ccc;
  margin-top: 10px;
  font-size: 0.9rem;
  display: none;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 35px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.modal-close:hover {
  color: #aaa;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* === Thumbnails inside chat === */
.ai-image-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 12px 0;
  width: 100%;
}

.ai-image {
  
  width: 100%;
  max-width: 400px;
  max-height: 400px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.ai-image:hover {
  transform: scale(1.02);
}

.ai-caption {
  font-size: 0.9rem;
  color: #777;
  margin-top: 6px;
  text-align: center;
  font-style: italic;
  display: none;
}
.ai-image[style*="display: none"] {
  display: block !important;
}
.aiLinks-disabled {
  color: #999;
  text-decoration: none;
  cursor: default;
  font-style: italic;
}
.ai-tools {
  margin-top: 10px;
  border-top: 1px solid #eee;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ai-timestamp {
  font-size: 0.75rem;
  color: #999;
  margin-left: 5px;
}

.like-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #888;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.2s ease;
}
.like-btn:hover {
    color: #10A37F;
  transform: scale(1.2);
  transition: all 0.2s ease;
}

.like-btn.liked {
opacity: 0.4;
}

.like-btn.disabled {
display: none;
}

.example-questions-bar {
  background: #ffffff11;
  border-top: 1px solid #f2f2f2f6;
  padding: 3px 12px;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  width:auto;
   transition: color 0.8s ease;
  display: none;
}

.eq-header {
  font-weight: 600;
  font-size: 1rem;
  color: #524a58;
  display: flex;
   transition: color 0.5s ease;
      font-weight: 480;
      margin-left: 15px;
      text-shadow: 0px 1px 0px rgb(255 255 255 / 49%);
}

.eq-toggle {
  font-size: 1rem;
  cursor: pointer;

   transition: color 0.5s ease;


}

.eq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-left: 6px;
   transition: color 0.5s ease;
   gap: 10px;
    margin-top: 5px;
}



.eq-item {
  font-size: 1rem;
  color: #00695c;
  cursor: pointer;
  transition: color 0.5s ease;
  text-shadow: 0px 1px 0px rgb(255 255 255 / 49%);
}
.eq-item:hover {
  color: #10A37F;
}

.hidden {
  display: none !important;
}

@media (max-width: 600px) {
  .example-questions-bar {
    font-size: 0.85rem;
    border-radius: 0;
  }
  .eq-list {
    flex-direction: column;
  }
}
.google-icon-bg{
    width: 32px;
    height: 32px;
    /* background: #6969691f; */
    border-radius: 50%;
    padding: 5px;
    backdrop-filter: blur(14px);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08), 0 -6px 5px 0px rgba(255, 255, 255, 0.4) inset;
    border: 1px solid rgb(255 255 255 / 99%);
    margin-top: 2px;
}
.page-container {
  padding-top: 80px; /* Space for header */
  text-align: center;
    color: var(--oxford-blue);
}
/* ============================
   🟣 PREMIUM ONBOARDING UI
   ============================ */

.onboarding {
  position: absolute;
  top: 90px; /* below header */
  left: 0;
  right: 0;
  /* margin: 0 auto;*/
  width: 90%;
  height: 100%;
  padding: 2px 10px;
  border-radius: 24px;
  /*text-align: center;*/
  z-index: 999;
  /* Fade-in animation */
  animation: onboardingFade 0.98s ease-out;
}

@keyframes onboardingFade {
  from { opacity: 0; transform: translateY(30px) scale(0.35); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* Halo glow behind card */
.onboarding::before {
  content: "";
  position: absolute;
  inset: -20px;
  filter: blur(25px);
  z-index: -1;
}


/* Title */
.onboarding-titleH3{
  font-size: 2.5rem;
  font-weight: 300;
  color: #4f4557;
  margin-bottom: 8px; 
  margin-left: 13px;
  text-shadow: 0px 1px 0px rgb(255 255 255 / 49%);
  line-height: 1.4;
  margin-top: 0px;
}

/* Title */
.onboarding-titleH2{
  font-size: 1.9rem;
  font-weight: 480;
  color: #4f4557;
  margin-bottom: 8px; 
  margin-left: 13px;
  text-shadow: 0px 1px 0px rgb(255 255 255 / 49%);
}


/* Responsive adjustments */
@media (max-width: 600px) {
  .onboarding {
    max-width: 94%;
    padding: 2px 10px;
  }

  .onboarding-titleH2 {
    font-size: 1.4rem;
  }

    .onboarding-titleH3 {
    font-size: 1.8rem;
    
  }

  .onboarding-chip {
    font-size: 0.9rem;
    padding: 13px 16px;
  }
}

/* Container for example chips */
.onboarding-examples {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px;
  align-items: flex-start;
  position: absolute;
  bottom: 200px;
}


/* Each example "chip" */
.onboarding-chip {
 
     padding: 12px 18px;
    border-radius: 45px;
    background: #ffffff47;
    backdrop-filter: blur(14px);
    border: 1px solid rgb(255 255 255 / 99%);
    font-size: 0.9rem;
    color: #4f4557;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08), 0 -6px 5px 0px rgba(255, 255, 255, 0.4) inset;
    transition: transform 5.55s 
ease, background 0.15s 
ease, box-shadow 0.25s 
ease;
  
}

/* Hover + tap feedback */
.onboarding-chip:hover {
  background: rgba(255,255,255,0.75);
  transform: translateY(-2px);
  box-shadow:
    0 6px 18px rgba(0,0,0,0.12),
    0 0 0 1px rgba(255,255,255,0.55) inset;
}

.onboarding-chip:active {
  transform: scale(0.97);
}




/* ============================
   🟣 ONBOARDING EXIT ANIMATION
   ============================ */

/* When JS adds this class, the panel fades + slides up */
.onboarding.hide {
  animation: onboardingHide 0.75s ease forwards;
  pointer-events: none;
}

@keyframes onboardingHide {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(0.35);
  }
}

/* Chip click animation feedback (mini bounce) */
.onboarding-chip:active {
  transform: scale(1.3);
  transition: transform 0.15s ease;
}

/* Right-side cluster container */
.header-right-cluster {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Share wrapper (icon + text) */
.share-wrap {
  display: flex;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
}



/* Make sure buttons line up */
.audio-toggle {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.audio-toggle img,
.share-icon {
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.audio-toggle:hover,
.share-icon:hover {
   opacity: 0.5;
}

.footerMsg{
  font-size: 0.65rem;
    color: #939393;
    text-align: center;
    padding: 0 5px 5px;
}