/* ----------------------
   Base + Color Themes
   ---------------------- */
:root {
  --accent1: #00bfa5;
  --accent2: #42a5f5;
  --muted: #6c7780;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --bg-mint: linear-gradient(180deg, #f0fcfb, #eef8ff 60%);
  --dark-body: #0c1620;
  --dark-card: #0f1720;
}

/* ---------- RESET ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Inter, "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #0b1520;
  background: var(--bg-mint);
  transition: background 0.9s ease, color 0.6s ease;
  overflow: hidden;
}

/* ---------- INTRO (full-screen, animated, no button) ---------- */
.intro {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at 25% 30%, rgba(0, 180, 160, 0.25), transparent 60%),
              linear-gradient(135deg, #062a3a, #094a75 80%);
  color: #fff;
  z-index: 9999;
  animation: introBgPulse 8s ease-in-out infinite alternate;
}
@keyframes introBgPulse {
  0% { background-position: 0% 0%; filter: brightness(1); }
  100% { background-position: 100% 100%; filter: brightness(1.1); }
}
.intro-inner {
  animation: introAppear 1.5s ease forwards;
}
@keyframes introAppear {
  0% { opacity: 0; transform: scale(0.8) translateY(30px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.intro-title {
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #6ee7d4, #42a5f5, #00bfa5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shimmer 6s linear infinite;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.intro-sub {
  margin-top: 12px;
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 460px;
  animation: fadeInSub 2.5s ease forwards 0.8s;
}
@keyframes fadeInSub {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.intro-btn { display: none !important; }

/* ---------- TOP NAV ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  height: 68px;
  width: 96%;
  margin: 10px auto;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.mini-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, #e8f7f3, #f1fbff);
  box-shadow: inset 0 6px 18px rgba(0, 0, 0, 0.04);
}
.title {
  font-weight: 600;
  color: #0b1520;
}

/* NAV BUTTONS */
.nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav-btn {
  background: #ffffff;
  border: none;
  border-radius: 24px;
  padding: 10px 20px;
  font-weight: 600;
  color: var(--muted);
  box-shadow: 4px 4px 10px rgba(18,24,30,0.06), -6px -6px 16px rgba(255,255,255,0.8);
  transition: all 0.25s ease;
  cursor: pointer;
}
.nav-btn:hover { transform: translateY(-2px); color: var(--accent2); }
.nav-btn.active {
  background: linear-gradient(135deg, #00caa0, #42a5f5);
  color: white;
  box-shadow: 0 6px 18px rgba(66,165,245,0.3);
}

/* Theme toggle */
.controls { display: flex; align-items: center; gap: 12px; }
.theme-toggle { display: inline-flex; align-items: center; cursor: pointer; }
.theme-toggle input { display: none; }
.switch {
  width: 52px; height: 30px; border-radius: 18px;
  background: linear-gradient(180deg, #e6f7f7, #f1fbff);
  display: inline-block; padding: 4px; position: relative;
  box-shadow: inset 2px 2px 6px rgba(0,0,0,0.04);
}
.knob {
  position: absolute; left: 4px; top: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: white; box-shadow: 0 6px 12px rgba(10,16,24,0.12);
  transition: left 0.25s ease;
}
.theme-toggle input:checked + .switch {
  background: linear-gradient(180deg, #3b4652, #0f1720);
}
.theme-toggle input:checked + .switch .knob { left: 26px; }

/* ---------- MAIN LAYOUT ---------- */
.container {
  display: flex;
  gap: 28px;
  padding: 34px 48px;
  position: relative;
  min-height: calc(100vh - 100px);
  overflow: hidden;
}
.left-card {
  width: 34%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 2;
}
.chat-section { flex: 1; }

/* ---------- CARDS ---------- */
.card {
  background: var(--card);
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(12,22,30,0.06);
}
.small { padding: 12px; }
.gentle {
  background: linear-gradient(180deg, #eafaf8, #f6fdff);
  border-left: 4px solid var(--accent1);
}

/* ---------- CHAT ---------- */
.chat-card {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 180px);
  background: linear-gradient(180deg, #ffffff, #f5fbfd);
  border-radius: 22px;
  box-shadow:
    inset 2px 2px 5px rgba(255,255,255,0.8),
    0 12px 30px rgba(0,0,0,0.18),
    0 0 6px rgba(0,0,0,0.05);
  padding: 22px;
}
.chat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mood-indicator {
  background: linear-gradient(90deg, #00caa0, #42a5f5);
  color: white; font-weight: 500;
  box-shadow: 0 2px 8px rgba(66,165,245,0.3);
  border-radius: 40px;
  padding: 6px 10px;
}
.chat-window {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7fbfc, #edf6f7);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.05);
}

.message {
  max-width: 70%;
  padding: 12px;
  border-radius: 14px;
  margin: 8px 0;
  animation: fadeIn .22s ease;
}
.message.user {
  margin-left: auto;
  background: linear-gradient(90deg, #00caa0, #42a5f5);
  color: #fff;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}
.message.bot {
  margin-right: auto;
  background: #f3f9fb;
  color: #04202a;
  border: 1px solid rgba(0,0,0,0.05);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- CHAT INPUT ---------- */
.chat-input {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  align-items: center;
}
.chat-input input {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e6eef3;
}
.send {
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  border: none;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
}

/* ---------- PANEL PAGES (Tabs) ---------- */
.tab-pane {
  position: absolute;
  top: 0;
  left: 36%;
  width: calc(64% - 40px);
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(40px);
  transition: opacity .45s ease, transform .45s ease, visibility .45s;
  overflow-y: auto;
}
.tab-pane.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  position: absolute;
}
.panel-wrap { padding: 30px; }
.panel.card {
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 20px;
}
textarea#journalText {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #d8e6ef;
  padding: 10px;
  min-height: 100px;
  font-family: inherit;
  outline: none;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.03);
}

/* ---------- RELAXATION ---------- */
.relax-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: start;
}
.breathing-block,
.sound-block,
.affirm.card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  padding: 20px;
}
.breathing {
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: radial-gradient(circle at center, #e8faff 0%, #c7f7f0 100%);
  box-shadow: 0 0 30px rgba(0,202,160,0.2);
}
.breathing.animate {
  animation: breath 4s infinite;
}
@keyframes breath {
  0% { transform: scale(0.75); }
  50% { transform: scale(1.12); }
  100% { transform: scale(0.75); }
}
/* --- fix: navbar overlap & restore nav glow --- */
.container {
  padding-top: 100px; /* push content below navbar */
}

.nav-btn {
  background: #ffffff;
  border: none;
  border-radius: 24px;
  padding: 10px 22px;
  font-weight: 600;
  color: var(--muted);
  box-shadow: 4px 4px 10px rgba(18,24,30,0.06), -4px -4px 10px rgba(255,255,255,0.8);
  transition: all 0.25s ease;
  cursor: pointer;
}
.nav-btn:hover {
  background: linear-gradient(135deg, #00caa0, #42a5f5);
  color: #fff;
  box-shadow: 0 6px 16px rgba(66,165,245,0.25);
  transform: translateY(-2px);
}
.nav-btn.active {
  background: linear-gradient(135deg, #00caa0, #42a5f5);
  color: #fff;
  box-shadow: 0 6px 18px rgba(66,165,245,0.3);
}

/* ---------- THEME CLASSES (emotion-based) ---------- */
body.theme-warm {
  background: linear-gradient(180deg, #fff7f0 0%, #ffe8d2 100%);
}
body.theme-cool {
  background: linear-gradient(180deg, #f3f6fb 0%, #d9e5fa 100%);
}
body.theme-softPurple {
  background: linear-gradient(180deg, #f3e9ff 0%, #ece4f8 100%);
}
body.theme-mint {
  background: linear-gradient(180deg, #ecfefc 0%, #eaf8ff 100%);
}

/* ---------- DARK MODE ---------- */
body.dark {
  background: linear-gradient(180deg, #0c1b28, #0a1620);
  color: #d4e9f2;
}
body.dark .card,
body.dark .chat-card,
body.dark .panel.card {
  background: #0f1a26;
  box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.06),
              0 10px 24px rgba(0, 0, 0, 0.6);
}
body.dark .chat-window { background: #101e2c; }
body.dark .nav-btn {
  background: #142532;
  color: #b5e7ff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}
body.dark .nav-btn.active {
  background: linear-gradient(135deg, #00bfa5, #1e88e5);
  color: #fff;
  box-shadow: 0 6px 20px rgba(30,136,229,0.4);
}
body.dark .topbar {
  background: rgba(10, 18, 28, 0.92);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}
body.dark .brand .title {
  color: #8cd3ff !important;
}

/* ---------- SMALL HELPERS ---------- */
.small { font-size: 0.95rem; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: 0.95rem; }

/* ---- EMOTION THEME ANIMATIONS ---- */
body.theme-transition {
  transition: background 1s ease, color 0.8s ease;
}

/* Animated overlays for more emotion feedback */
body.theme-warm::after,
body.theme-cool::after,
body.theme-softPurple::after,
body.theme-mint::after,
body.theme-redGlow::after,
body.theme-blueGray::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
  transition: opacity 1s ease;
}

body.theme-warm::after {
  background: radial-gradient(circle at 30% 20%, rgba(255,200,150,0.5), transparent 70%);
}
body.theme-cool::after {
  background: radial-gradient(circle at 60% 80%, rgba(120,170,255,0.4), transparent 70%);
}
body.theme-softPurple::after {
  background: radial-gradient(circle at 50% 50%, rgba(190,160,255,0.4), transparent 70%);
}
body.theme-redGlow::after {
  background: radial-gradient(circle at 50% 50%, rgba(255,100,80,0.4), transparent 70%);
}
body.theme-blueGray::after {
  background: radial-gradient(circle at 20% 80%, rgba(120,150,200,0.3), transparent 70%);
}

/* Navbar stays above */
.topbar { z-index: 1000; }

/* Breathing animation glow update */
.breathing.animate {
  animation: breathGlow 4s ease-in-out infinite;
}
@keyframes breathGlow {
  0%,100% { box-shadow: 0 0 30px rgba(0,202,160,0.2); transform: scale(0.75); }
  50% { box-shadow: 0 0 50px rgba(0,202,160,0.5); transform: scale(1.12); }
}

/* ----------------- AMBIENT FLOATING ORBS ----------------- */
#ambientContainer {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  transition: background 2s ease;
}

.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
  filter: blur(60px);
  animation: floatOrb 18s ease-in-out infinite;
  mix-blend-mode: lighten;
  transition: background 1s ease;
}

@keyframes floatOrb {
  0%   { transform: translateY(0) scale(1); }
  50%  { transform: translateY(-80px) scale(1.2); }
  100% { transform: translateY(0) scale(1); }
}

/* Orb colors per mood theme */
body.theme-warm .orb { background: radial-gradient(circle, #ffc085, #ff9a5a); }
body.theme-cool .orb { background: radial-gradient(circle, #8cb6ff, #5a8cff); }
body.theme-softPurple .orb { background: radial-gradient(circle, #c4a5ff, #9878ff); }
body.theme-redGlow .orb { background: radial-gradient(circle, #ff7373, #ff4747); }
body.theme-blueGray .orb { background: radial-gradient(circle, #a4b9d9, #6c87a8); }
body.theme-mint .orb { background: radial-gradient(circle, #9fffe0, #5af5cd); }

/* Smooth orb fade when theme changes */
body.theme-transition .orb {
  opacity: 0.25;
}
/* --- NAV / LAYOUT FIX --- */
.topbar { position: fixed; top: 10px; left: 2%; right: 2%; z-index: 9999; }
.container, .tab-pane { padding-top: 100px !important; }

/* --- BUTTON STYLE UPGRADE --- */
.pill, .btn, .nav-btn {
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 22px;
  font-weight: 600;
  transition: all .25s ease;
  box-shadow: 0 6px 16px rgba(66,165,245,0.25);
  cursor: pointer;
}
.pill:hover, .btn:hover, .nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(66,165,245,0.35);
}

/* --- RELAXATION GRID FIX --- */
.relax-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 12px;
}
.tool-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.tool-card h4 { margin-bottom: 6px; }
.tool-card p { font-size: 0.95rem; color: var(--muted); margin-bottom: 10px; }
.tool-card button { margin-top: 6px; }

/* --- MOOD GRAPH AREA --- */
#moodChart { width: 100% !important; height: 260px !important; }

/* --- FLOATING CHAT WELCOME BOX --- */
.welcome-bubble {
  align-self: flex-start;
  background: #f3f9fb;
  border-radius: 14px;
  padding: 12px 16px;
  margin: 8px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  animation: fadeIn .5s ease;
}
/* ---------- GENTLE TAB SLIDE ANIMATION ---------- */
.tab-pane {
  opacity: 0;
  transform: translateX(40px);
  visibility: hidden;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    visibility 0.45s ease;
}

.tab-pane.active {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
  animation: slideFadeIn 0.6s ease;
}

@keyframes slideFadeIn {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
/* ---------- ACTIVE TAB GLOW (dynamic light behind nav button) ---------- */
.nav-btn.active {
  position: relative;
  overflow: hidden;
}

.nav-btn.active::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  z-index: -1;
  filter: blur(16px);
  opacity: 0.8;
  animation: pulseGlow 3s ease-in-out infinite;
}

/* Emotion-based glow colors */
body.theme-warm .nav-btn.active::after {
  background: radial-gradient(circle, #ffb98a 10%, transparent 80%);
}
body.theme-cool .nav-btn.active::after {
  background: radial-gradient(circle, #8ab6ff 10%, transparent 80%);
}
body.theme-softPurple .nav-btn.active::after {
  background: radial-gradient(circle, #bda7ff 10%, transparent 80%);
}
body.theme-redGlow .nav-btn.active::after {
  background: radial-gradient(circle, #ff7676 10%, transparent 80%);
}
body.theme-blueGray .nav-btn.active::after {
  background: radial-gradient(circle, #a4b9d9 10%, transparent 80%);
}
body.theme-mint .nav-btn.active::after {
  background: radial-gradient(circle, #7af7d5 10%, transparent 80%);
}

@keyframes pulseGlow {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

#relaxOutput {
  transition: opacity 0.4s ease;
  opacity: 0;
}
#relaxOutput.active {
  opacity: 1;
}

/* ---------- Breathing Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  transition: opacity 0.5s ease;
}
.modal.hidden {
  opacity: 0;
  pointer-events: none;
}
.modal-content {
  background: white;
  color: #04202a;
  border-radius: 20px;
  padding: 30px 40px;
  text-align: center;
  box-shadow: 0 0 30px rgba(0,0,0,0.2);
  width: 340px;
  position: relative;
}
.breathing-circle {
  width: 160px;
  height: 160px;
  margin: 25px auto;
  border-radius: 50%;
  background: radial-gradient(circle, #b2f7ef, #84e9d9);
  box-shadow: 0 0 30px rgba(0,191,165,0.4);
  animation: none;
}
@keyframes breathInOut {
  0% { transform: scale(0.8); background: #a7f0e1; }
  50% { transform: scale(1.1); background: #8ee7d1; }
  100% { transform: scale(0.8); background: #a7f0e1; }
}

.dark-label {
  font-weight: 500;
  color: #3a4a58;
  margin-right: 8px;
  font-size: 0.95rem;
}
body.dark .dark-label {
  color: #b5e7ff;
}

/* ---------- WELCOME BUBBLE FIX ---------- */
.welcome-bubble {
  display: inline-block;
  background: rgba(255, 255, 255, 0.8);
  color: #04202a;
  padding: 12px 18px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  margin: 10px auto;
  font-size: 1rem;
  animation: gentleSlideIn 1s ease;
}

/* Gentle entry animation */
@keyframes gentleSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dark mode adjustment */
body.dark .welcome-bubble {
  background: rgba(20, 30, 40, 0.9);
  color: #d4e9f2;
  box-shadow: 0 0 20px rgba(0, 191, 165, 0.3);
}

/* 🌿 AI Summary Card Styling */
.ai-summary-card {
  margin-top: 1rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(230, 250, 240, 0.9));
  border-radius: 16px;
  padding: 1rem 1.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.6s ease forwards;
  backdrop-filter: blur(12px);
  color: #1d1d1d;
  font-size: 0.95rem;
  line-height: 1.6;
  transition: all 0.3s ease-in-out;
}

.ai-summary-card h4 {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #00796b;
}

.ai-summary-card p {
  margin: 0;
  color: #333;
}

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

/* 🌙 Dark mode adaptation */
body.dark .ai-summary-card {
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.8), rgba(40, 60, 50, 0.85));
  color: #e9f5ee;
  box-shadow: 0 0 15px rgba(0, 255, 200, 0.2);
}

body.dark .ai-summary-card h4 {
  color: #80cbc4;
}

body.dark .ai-summary-card p {
  color: #d1eae0;
}

/* 🩵 Hover feel (optional, subtle lift) */
.ai-summary-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 150, 136, 0.25);
}

/* 🌼 Summary sub-sections inside AI summary card */
.summary-section {
  margin-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 0.5rem;
}

.summary-section h5 {
  margin: 0.3rem 0;
  font-weight: 600;
  color: #009688;
  font-size: 0.95rem;
}

.summary-section ul {
  margin: 0.3rem 0 0 1rem;
  padding: 0;
  list-style-type: "🌸 ";
}

.summary-section li {
  margin: 0.25rem 0;
  color: #444;
  font-size: 0.9rem;
}

/* Dark mode tweak */
body.dark .summary-section h5 {
  color: #80cbc4;
}
body.dark .summary-section li {
  color: #d1eae0;
}

/* ---------- Streak Banner ---------- */
.streak-banner {
  text-align: center;
  background: linear-gradient(90deg, #ff9a9e, #fad0c4);
  padding: 8px;
  border-radius: 10px;
  margin: 8px 0 12px;
  font-weight: bold;
  box-shadow: 0 0 8px rgba(255, 140, 100, 0.3);
}

/* Animate streak banner when updated */
@keyframes streakPop {
  0% { transform: scale(0.9); opacity: 0.5; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.streak-banner.new-day {
  animation: streakPop 1s ease-in-out, glowPulse 2s infinite alternate;
  box-shadow: 0 0 12px rgba(255, 150, 100, 0.6);
}

/* Gentle glow loop */
@keyframes glowPulse {
  from { box-shadow: 0 0 8px rgba(255, 150, 100, 0.4); }
  to { box-shadow: 0 0 20px rgba(255, 150, 100, 0.8); }
}

/* ---------- Emotion Glow Themes ---------- */
#chatWindow.happy {
  background: radial-gradient(circle, #fff6b7, #f6416c);
  animation: glowHappy 3s infinite alternate;
}
#chatWindow.sad {
  background: radial-gradient(circle, #89f7fe, #66a6ff);
  animation: glowSad 3s infinite alternate;
}
#chatWindow.angry {
  background: radial-gradient(circle, #ff9966, #ff5e62);
  animation: glowAngry 3s infinite alternate;
}
#chatWindow.neutral {
  background: radial-gradient(circle, #dfe9f3, #ffffff);
}

@keyframes glowHappy {
  from { box-shadow: 0 0 10px #ffdd67; }
  to { box-shadow: 0 0 30px #ffdd67; }
}
@keyframes glowSad {
  from { box-shadow: 0 0 10px #66a6ff; }
  to { box-shadow: 0 0 30px #66a6ff; }
}
@keyframes glowAngry {
  from { box-shadow: 0 0 10px #ff5e62; }
  to { box-shadow: 0 0 30px #ff5e62; }
}

/* --- Thinking Animation --- */
.message.bot.thinking {
  display: flex;
  align-items: center;
  gap: 8px;
  font-style: italic;
  color: #888;
}

.thinking-text .dots::after {
  content: "";
  animation: dotBlink 1.5s infinite;
}

@keyframes dotBlink {
  0% { content: "."; }
  33% { content: ".."; }
  66% { content: "..."; }
  100% { content: ""; }
}

/* --- Bot Avatar --- */
.bot-avatar {
  margin-right: 8px;
  font-size: 20px;
}

/* --- Thinking Bubble --- */
.message.bot.thinking {
  display: flex;
  align-items: center;
  gap: 8px;
  font-style: italic;
  color: #888;
}
.thinking-text .dots::after {
  content: "";
  animation: dotBlink 1.5s infinite;
}
@keyframes dotBlink {
  0% { content: "."; }
  33% { content: ".."; }
  66% { content: "..."; }
  100% { content: ""; }
}

/* ---------------------- 🌈 Unified Gradient Mood Bar ---------------------- */

/* Mood bar layout */
.mood-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

/* Reset Chat button — same color as Chat tab */
.reset-btn {
  background: linear-gradient(135deg);
  color: black;
  border: none;
  border-radius: 30px;
  padding: 6px 14px;
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(66,165,245,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;

}
.reset-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(66,165,245,0.35);
}

/* Mood indicator — matches chat gradient */
#moodIndicator {
  display: inline-block;
  background: linear-gradient(135deg, #00caa0, #42a5f5);
  color: #fff;
  font-weight: 600;
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(66,165,245,0.25);
  transition: all 0.3s ease;
}

/* Light bounce animation when mood changes */
@moodPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
#moodIndicator {
  animation: moodPulse 1s ease-in-out;
}

/* Dark mode adaptation */
body.dark .reset-btn,
body.dark #moodIndicator {
  background: linear-gradient(135deg, #00bfa5, #1e88e5);
  box-shadow: 0 4px 12px rgba(0,191,165,0.3);
}
body.dark .reset-btn:hover,
body.dark #moodIndicator:hover {
  box-shadow: 0 6px 18px rgba(30,136,229,0.4);
}


/* 🌙 Fix: Relaxation tools visibility in Dark Mode */
body.dark .tool-card {
  background: linear-gradient(180deg, #0f1a26, #182635);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.7);
  color: #d6f4ff;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark .tool-card h4 {
  color: #7ce7d6; /* teal glow */
}

body.dark .tool-card p {
  color: #cce9f5;
}

body.dark .tool-card button.pill {
  background: linear-gradient(135deg, #00bfa5, #1e88e5);
  color: white;
  box-shadow: 0 0 12px rgba(0, 191, 165, 0.3);
}

body.dark .tool-card button.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 191, 165, 0.5);
}

/* Optional: Relax Output visibility fix */
body.dark #relaxOutput {
  color: #b9eaff;
  background: rgba(15, 25, 35, 0.8);
  box-shadow: 0 0 20px rgba(0, 191, 165, 0.2);
}

/* 🌈 Welcome Logo Container */
.welcome-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: radial-gradient(circle at center, #0f172a 20%, #1e293b 100%);
  animation: fadeInBG 2s ease-in-out;
}

/* 💫 Pulsing Gradient Glow Circle */
.glow-logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  box-shadow: 0 0 25px rgba(101, 73, 255, 0.6),
              0 0 45px rgba(37, 117, 252, 0.3);
  animation: pulseGlow 2.8s ease-in-out infinite;
}

/* ✨ ManoMitra Text */
.logo-text {
  margin-top: 25px;
  font-family: "Poppins", sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #e0f2fe;
  text-shadow: 0 0 10px rgba(37, 117, 252, 0.6);
  animation: fadeText 2s ease-in-out;
}

/* 🔁 Animations */
@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.15);
    filter: brightness(1.35);
  }
}

@keyframes fadeText {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInBG {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* 🧭 Center the glowing logo perfectly */
.intro {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh; /* Full screen height */
  text-align: center;
  background: radial-gradient(circle at center, #0f172a 20%, #1e293b 100%);
}

.intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


