@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Prompt:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   DESIGN TOKENS & STYLE SYSTEM (PWA BRAND LIGHT THEME)
   ============================================================ */
:root {
  /* Dimensions & Typography */
  --text-xs:   clamp(0.72rem,  0.68rem + 0.2vw,  0.82rem);
  --text-sm:   clamp(0.82rem,  0.78rem + 0.25vw, 0.95rem);
  --text-base: clamp(0.95rem,  0.9rem  + 0.25vw, 1.05rem);
  --text-lg:   clamp(1.1rem,   1rem    + 0.6vw,  1.4rem);
  --text-xl:   clamp(1.4rem,   1.1rem  + 1.1vw,  2rem);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  /* Colors - Water Mascot Matched */
  --c-dark-navy: rgb(23, 28, 45);
  --c-steel-blue: rgb(189, 202, 221);
  --c-off-white: rgb(246, 246, 246);
  --c-bright-cyan: rgb(91, 219, 250);
  --c-neon-glow: rgb(168, 248, 253);
  --c-royal-blue: rgb(48, 103, 179);
  --c-light-slate: #f1f5f9;

  /* Theme Surfaces */
  --color-bg:           #f3f7fa; /* Clean light blue-gray background */
  --color-surface:      rgba(255, 255, 255, 0.88); /* Glass card background */
  --color-surface-2:    #f8fafc; /* Subtle light header backgrounds */
  --color-surface-3:    #eef2f7; /* Selected state */
  --color-surface-4:    #e2e8f0; /* Hover state */
  
  --color-border:       rgba(23, 28, 45, 0.08);
  --color-border-glow:  rgba(48, 103, 179, 0.25);
  --color-divider:      rgba(23, 28, 45, 0.05);

  /* Typography Text Colors */
  --color-text:         rgb(23, 28, 45); /* Dark Navy */
  --color-text-muted:   rgb(91, 110, 146); /* Slate Blue */
  --color-text-faint:   rgba(23, 28, 45, 0.45);

  /* Primary Brand colors */
  --color-primary:      var(--c-royal-blue);
  --color-primary-dim:  rgba(48, 103, 179, 0.08);
  --color-primary-glow: rgba(48, 103, 179, 0.15);
  --color-primary-hover: #1f4f8f;
  
  --color-accent:       var(--c-bright-cyan);
  --color-accent-2:     #329edb;

  /* Status */
  --color-success:  #10b981;
  --color-warning:  #f59e0b;
  --color-error:    #ef4444;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(23, 28, 45, 0.04);
  --shadow-md:   0 4px 16px rgba(23, 28, 45, 0.05);
  --shadow-lg:   0 12px 36px rgba(23, 28, 45, 0.07);
  --shadow-glass: 0 10px 30px -10px rgba(23, 28, 45, 0.08);
  --shadow-glass-hover: 0 15px 35px -8px rgba(48, 103, 179, 0.15);

  /* Transitions */
  --t-fast:   140ms cubic-bezier(0.16, 1, 0.3, 1);
  --t-smooth: 260ms cubic-bezier(0.16, 1, 0.3, 1);
  --t-spring: 450ms cubic-bezier(0.175, 0.885, 0.32, 1.275);

  --font-body: 'Plus Jakarta Sans', 'Prompt', -apple-system, sans-serif;
  --font-display: 'Outfit', 'Prompt', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ============================================================
   CORE RESET & LAYOUT
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  background-color: var(--color-bg);
}

body {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Background canvas */
#ambientCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Main App Container grid layout */
.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  width: 100%;
  height: 100dvh;
  position: relative;
  z-index: 1;
  background: transparent;
}

@media (max-width: 768px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none !important;
  }
  .stage {
    display: none !important;
  }
  .msg--bot {
    margin-left: 0 !important;
  }
}

/* ============================================================
   LEFT SIDEBAR STYLE
   ============================================================ */
.sidebar {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  height: 100dvh;
  box-shadow: 4px 0 24px rgba(23, 28, 45, 0.02);
}

.sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-divider);
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(48, 103, 179, 0.1), rgba(91, 219, 250, 0.2));
  border: 1.5px solid var(--color-border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.logo-wrap:hover {
  transform: scale(1.05);
}

.logo-text {
  line-height: 1.2;
}
.logo-text .name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--c-dark-navy);
}
.logo-text .name span {
  font-weight: 500;
  color: var(--color-primary);
}
.logo-text .sub {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.new-chat-btn {
  margin: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(48, 103, 179, 0.08), rgba(91, 219, 250, 0.08));
  border: 1px solid rgba(48, 103, 179, 0.2);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s var(--t-smooth);
}
.new-chat-btn:hover {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}
.new-chat-btn:active {
  transform: translateY(0);
}
.new-chat-btn i {
  width: 16px;
  height: 16px;
}

.section-label {
  padding: 8px 20px 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-list {
  padding: 4px 8px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-item {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid transparent;
}
.chat-item i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.chat-item:hover {
  background: var(--color-surface-4);
  color: var(--color-text);
}
.chat-item.active {
  background: var(--color-surface-3);
  color: var(--color-primary);
  font-weight: 600;
  border-color: rgba(48, 103, 179, 0.15);
}

/* Sidebar Footer (Dashboard Trigger) */
.sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-card-btn {
  background: linear-gradient(135deg, #ffffff, rgba(48, 103, 179, 0.02));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s var(--t-smooth);
}
.action-card-btn:hover {
  border-color: rgba(48, 103, 179, 0.3);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.action-card-btn:hover .icon-box {
  background: var(--color-primary);
  color: #ffffff;
}
.action-card-btn:active {
  transform: translateY(0);
}
.action-card-btn .icon-box {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: rgba(48, 103, 179, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.action-card-btn .icon-box i {
  width: 16px;
  height: 16px;
}
.action-card-btn .btn-info {
  flex: 1;
  min-width: 0;
}
.action-card-btn .btn-info .title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text);
}
.action-card-btn .btn-info .desc {
  font-size: 9px;
  font-weight: 500;
  color: var(--color-text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.action-card-btn .arrow {
  width: 14px;
  height: 14px;
  color: var(--color-text-faint);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
}
.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.user-info {
  line-height: 1.3;
}
.user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text);
}
.user-role {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* ============================================================
   CENTER PANEL (MAIN CHAT AREA)
   ============================================================ */
.main-panel {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  position: relative;
}

.chat-header {
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}
.header-title h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-dark-navy);
}
.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.status-dot.green {
  background-color: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
}
.status-dot.orange {
  background-color: var(--color-warning);
  box-shadow: 0 0 8px var(--color-warning);
  animation: pulse-dot 1s infinite alternate;
}
.status-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

@keyframes pulse-dot {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

/* Chat Scroll Area */
.chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(48, 103, 179, 0.15) transparent;
}
.chat-area::-webkit-scrollbar {
  width: 6px;
}
.chat-area::-webkit-scrollbar-thumb {
  background: rgba(48, 103, 179, 0.15);
  border-radius: 10px;
}

/* Welcome Screen */
.welcome-screen {
  max-width: 680px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.welcome-center {
  text-align: center;
}
.welcome-logo {
  display: inline-flex;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(48, 103, 179, 0.15));
}
.welcome-center h1 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--c-dark-navy);
  letter-spacing: -0.02em;
}
.welcome-center h1 span {
  background: linear-gradient(135deg, var(--color-primary), var(--c-bright-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.welcome-center p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-top: 6px;
  font-weight: 500;
}

.welcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.suggest-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--t-smooth);
}
.suggest-card:hover {
  border-color: rgba(48, 103, 179, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.suggest-card:active {
  transform: translateY(0);
}
.suggest-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(48, 103, 179, 0.05);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.suggest-icon i {
  width: 16px;
  height: 16px;
}
.suggest-card h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--c-dark-navy);
  margin-bottom: 4px;
}
.suggest-card p {
  font-size: 0.74rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Message Feed Bubbles */
.messages {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.msg {
  display: flex;
  gap: 14px;
  max-width: 92%;
  transform-origin: center center;
}

.msg--bot {
  align-self: flex-start;
  animation: grow-bot-bubble 0.6s var(--t-spring) forwards;
}

@media (min-width: 768px) {
  .msg--bot {
    margin-left: 115px;
  }
}

.msg--user {
  align-self: flex-end;
  flex-direction: row-reverse;
  animation: grow-user-bubble 0.4s var(--t-spring) forwards;
}

@keyframes grow-bot-bubble {
  0% { opacity: 0; transform: scale(0.01) translate(40px, 40px); }
  100% { opacity: 1; transform: scale(1) translate(0,0); }
}

@keyframes grow-user-bubble {
  0% { opacity: 0; transform: scale(0.1) translate(0, 40px); }
  100% { opacity: 1; transform: scale(1) translate(0,0); }
}

.msg__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.msg__body {
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
}

.msg--bot .msg__body {
  border-top-left-radius: 2px;
}

.msg--user .msg__body {
  background: linear-gradient(135deg, rgba(91, 219, 250, 0.08), rgba(48, 103, 179, 0.08));
  border-color: rgba(48, 103, 179, 0.15);
  border-top-right-radius: 2px;
}

.msg__text {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-text);
  word-break: break-word;
}

/* Message Markdown output typography rules */
.msg__text p {
  margin-bottom: 8px;
}
.msg__text p:last-child {
  margin-bottom: 0;
}
.msg__text ul, .msg__text ol {
  margin-left: 20px;
  margin-bottom: 10px;
}
.msg__text li {
  margin-bottom: 4px;
}
.msg__text h1, .msg__text h2, .msg__text h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--c-dark-navy);
  margin-top: 12px;
  margin-bottom: 6px;
}
.msg__text h1 { font-size: 1.25rem; }
.msg__text h2 { font-size: 1.12rem; }
.msg__text h3 { font-size: 1rem; }

/* Markdown Table Rendering Style */
.msg__text table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 16px;
  font-size: 0.8rem;
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.msg__text th, .msg__text td {
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  text-align: left;
}
.msg__text th {
  background: rgba(48, 103, 179, 0.08);
  font-weight: 700;
  color: var(--color-primary);
}
.msg__text tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.6);
}

.msg__time {
  display: block;
  font-size: 0.65rem;
  color: var(--color-text-faint);
  margin-top: 6px;
  text-align: right;
}

/* Citations section inside bot answer */
.references-section {
  border-top: 1.5px dashed var(--color-border);
  margin-top: 12px;
  padding-top: 10px;
}
.ref-details {
  display: block;
}
.ref-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  cursor: pointer;
  padding: 6px 10px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  user-select: none;
  transition: all 0.2s ease;
}
.ref-summary::-webkit-details-marker {
  display: none;
}
.ref-summary:hover {
  background: rgba(48, 103, 179, 0.06);
  border-color: rgba(48, 103, 179, 0.2);
}
.ref-summary-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ref-summary-title i {
  width: 12px;
  height: 12px;
}
.ref-toggle-icon {
  display: flex;
  align-items: center;
  color: var(--color-text-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.ref-toggle-icon i {
  width: 12px;
  height: 12px;
}
details[open] .ref-toggle-icon {
  transform: rotate(180deg);
}
.ref-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 10px;
}
.ref-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}
.ref-chip:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}
.ref-chip i {
  width: 12px;
  height: 12px;
}

/* Image preview attachment card */
.image-preview-card {
  margin-top: 10px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  cursor: zoom-in;
  position: relative;
  max-width: 320px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.image-preview-card:hover {
  transform: scale(1.02);
}
.image-preview-card img {
  width: 100%;
  height: auto;
  display: block;
}
.image-preview-card .img-badge {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(23, 28, 45, 0.7);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
}
.image-preview-card .img-badge i {
  width: 10px;
  height: 10px;
}

/* Slide Deck card preview */
.pres-preview {
  margin-top: 12px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  max-width: 440px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.pres-bar {
  background: rgba(23, 28, 45, 0.03);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-divider);
}
.pres-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.pres-title-file {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--color-text-muted);
  margin-left: 8px;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pres-content {
  padding: 16px;
}
.pres-headline {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
}
.pres-meta {
  font-size: 0.72rem;
  color: var(--color-text-faint);
  margin-top: 2px;
  margin-bottom: 12px;
}
.open-slides-btn {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.open-slides-btn:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-glow);
}
.open-slides-btn i {
  width: 14px;
  height: 14px;
}

/* Inline Charts Card */
.data-card {
  margin-top: 12px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}
.data-card-header {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  border-bottom: 1px solid var(--color-divider);
  padding-bottom: 4px;
}
.data-card-body {
  width: 100%;
  height: auto;
}

/* Typing indicator wave dots */
.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px 6px;
}
.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.4;
  animation: blink-typing 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink-typing {
  0%, 100% { transform: scale(0.8); opacity: 0.4; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* ============================================================
   CHAT INPUT BAR & CONTROLS
   ============================================================ */
.chat-input-container {
  padding: 16px 24px;
  background: linear-gradient(to top, rgba(243, 247, 250, 1) 80%, rgba(243, 247, 250, 0));
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Input Toolbar */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.rag-selector-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rag-selector-group .label-txt {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.rag-selector-group .label-txt i {
  width: 12px;
  height: 12px;
}

/* Segmented Switches */
.segmented-control {
  display: flex;
  background: rgba(23, 28, 45, 0.04);
  border-radius: var(--radius-md);
  padding: 2.5px;
  gap: 2px;
}
.segmented-control input[type="radio"] {
  display: none;
}
.segmented-control label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.segmented-control input[type="radio"]:checked + label {
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.active-pipelines {
  display: flex;
  gap: 6px;
}
.pipeline-chip {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: var(--color-text-faint);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.pipeline-chip i {
  width: 12px;
  height: 12px;
}
.pipeline-chip.active {
  background: var(--color-primary-dim);
  border-color: rgba(48, 103, 179, 0.2);
  color: var(--color-primary);
}

/* Input Area box */
.chat-bar {
  display: flex;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 8px 12px;
  align-items: flex-end;
  box-shadow: var(--shadow-md);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.chat-bar:focus-within {
  border-color: rgba(48, 103, 179, 0.35);
  box-shadow: var(--shadow-glass-hover);
}

.chat-bar textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  color: var(--color-text);
  padding: 4px 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  max-height: 140px;
  line-height: 1.45;
}
.chat-bar textarea::placeholder {
  color: var(--color-text-faint);
}

.chat-bar button {
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-bottom: 2px;
}
.chat-bar button:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}
.chat-bar button:active {
  transform: translateY(0);
}
.chat-bar button i {
  width: 14px;
  height: 14px;
}

/* ============================================================
   RIGHT PANEL (MASCOT STAGE)
   ============================================================ */
/* Mascot Stage floating inside main panel */
.stage {
  position: absolute;
  bottom: 105px; /* Floats just above input container */
  left: 24px;
  width: 130px;
  height: 130px;
  z-index: 50;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#bubbleCanvas {
  display: none !important;
}

.mascot-wrapper {
  position: relative;
  width: 130px;
  height: 110px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mascot {
  width: 100%;
  height: 100%;
}

.mascot-svg {
  width: 100%;
  height: 100%;
}

/* Smooth mascot path transforms */
.mascot-svg * {
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1), 
              fill 0.5s ease, 
              stroke 0.5s ease, 
              opacity 0.5s ease;
}

.mascot-svg .mouth {
  transform-origin: 1091.6px 487.9px;
  transition: transform 0.08s ease-out, fill 0.5s ease, opacity 0.5s ease;
}

/* ─── UPGRADED COMPANION CHAT BUBBLE ─── */
.chat-bubble-companion {
  position: absolute;
  top: -5px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--color-primary);
  box-shadow: 0 4px 12px rgba(23, 28, 45, 0.08);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border-bottom-left-radius: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 6;
  opacity: 0;
  transform: scale(0);
  transform-origin: center center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
  backdrop-filter: blur(8px);
}

.chat-bubble-companion.visible {
  opacity: 1;
  transform: scale(1);
}

.chat-bubble-companion .shape-indicator {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

/* Show indicator base on state class */
.chat-bubble-companion.state-listening .shape-listening { display: flex; }
.chat-bubble-companion.state-searching .shape-searching { display: flex; }
.chat-bubble-companion.state-speaking .shape-speaking { display: flex; }
.chat-bubble-companion.state-happy .shape-happy { display: flex; }
.chat-bubble-companion.state-startle .shape-startle { display: flex; }
.chat-bubble-companion.state-error .shape-error { display: flex; }
.chat-bubble-companion.state-sleeping .shape-sleeping { display: flex; }

/* Startle / Panic Wakeup indicator */
.shape-startle .startle-mark {
  font-weight: 900;
  font-size: 0.95rem;
  color: #f59e0b;
  font-family: var(--font-display);
  animation: pop-excl 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop-excl {
  from { transform: scale(0.2) rotate(-15deg); }
  to { transform: scale(1) rotate(0); }
}

/* Listening: dots bounce */
.shape-listening { gap: 2.5px; }
.shape-listening span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: bounce-dot 0.6s infinite alternate ease-in-out;
}
.shape-listening span:nth-child(2) { animation-delay: 0.15s; }
.shape-listening span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce-dot {
  from { transform: translateY(2px); }
  to { transform: translateY(-2px); }
}

/* Searching: radar ring rotation */
.shape-searching .radar-pulse {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.8px solid var(--color-primary);
  border-top-color: transparent;
  animation: spin-radar 0.8s linear infinite;
}
@keyframes spin-radar {
  to { transform: rotate(360deg); }
}

/* Speaking: Audio equalizer wave bar scale */
.shape-speaking {
  gap: 2.5px;
  align-items: center;
  height: 14px;
}
.shape-speaking .wave-bar {
  width: 2.2px;
  height: 12px;
  background: var(--color-primary);
  border-radius: 1px;
  transform-origin: bottom center;
  animation: speak-wave 0.45s infinite alternate ease-in-out;
}
.shape-speaking .wave-bar:nth-child(2) { animation-name: speak-wave-tall; animation-delay: 0.15s; }
.shape-speaking .wave-bar:nth-child(3) { animation-delay: 0.3s; }
@keyframes speak-wave {
  from { transform: scaleY(0.25); }
  to { transform: scaleY(0.75); }
}
@keyframes speak-wave-tall {
  from { transform: scaleY(0.3); }
  to { transform: scaleY(1); }
}

/* Happy: heart pulse scaling */
.shape-happy .heart-pulse {
  width: 8px;
  height: 8px;
  background: var(--c-bright-cyan);
  transform: rotate(45deg);
  position: relative;
  animation: heart-beat 0.55s infinite alternate ease-in-out;
  margin-top: 2px;
}
.shape-happy .heart-pulse::before, .shape-happy .heart-pulse::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-bright-cyan);
  position: absolute;
}
.shape-happy .heart-pulse::before { top: -4.5px; left: 0; }
.shape-happy .heart-pulse::after { top: 0; left: -4.5px; }
@keyframes heart-beat {
  from { transform: rotate(45deg) scale(0.9); }
  to { transform: rotate(45deg) scale(1.15); }
}

/* Error Warning */
.shape-error .error-excl {
  color: var(--color-error);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  animation: error-glow 0.4s infinite alternate;
}
@keyframes error-glow {
  from { opacity: 0.4; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1.15); }
}

/* Sleeping sign */
.shape-sleeping .sleep-z-static {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  color: var(--color-primary);
  animation: sleep-pulse-z 1.5s infinite alternate ease-in-out;
}
@keyframes sleep-pulse-z {
  from { transform: scale(0.85); opacity: 0.5; }
  to { transform: scale(1.15); opacity: 1; }
}

/* Sidebar references log card */
.sidebar .ref-card {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  margin: 8px 12px;
  flex: none;
  display: flex;
  flex-direction: column;
}
.sidebar .ref-card h4 {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.sidebar .ref-card h4 i {
  width: 12px;
  height: 12px;
  color: var(--color-primary);
}
.sidebar .ref-list {
  overflow-y: auto;
  max-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 2px;
}
.sidebar .ref-list::-webkit-scrollbar {
  width: 3px;
}
.sidebar .ref-list::-webkit-scrollbar-thumb {
  background: rgba(23, 28, 45, 0.06);
  border-radius: 4px;
}

.ref-log-chip {
  padding: 8px 10px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}
.ref-log-chip:hover {
  background: #ffffff;
  border-color: rgba(48, 103, 179, 0.3);
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}
.ref-log-chip i {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.ref-log-chip span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   MASCOT KEYFRAMES (PROMOTION SHAPES & BOBBING)
   ============================================================ */

/* Floating head/body */
@keyframes float-ambient {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-0.5deg); }
}
@keyframes float-listening {
  0%, 100% { transform: translateY(-2px) scale(1.01); }
  50% { transform: translateY(-8px) scale(1.01); }
}
@keyframes float-searching {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3px, -5px); }
  75% { transform: translate(3px, -3px); }
}
@keyframes float-speaking {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(-6px) scaleY(1.01); }
}
@keyframes float-happy {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-18px) scale(1.04, 0.94); }
  60% { transform: translateY(-22px) scale(0.97, 1.02); }
  85% { transform: translateY(2px) scale(1.02, 0.98); }
}
@keyframes float-error {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 1.5px) rotate(-1deg); }
  75% { transform: translate(2px, -1.5px) rotate(1deg); }
}
@keyframes float-sleeping {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); opacity: 0.8; }
  50% { transform: translateY(-4px) rotate(0.5deg); opacity: 0.6; }
}

/* Head bobbing joint */
@keyframes head-bob-idle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(-0.5deg); }
}
.mascot[data-state="idle"] .mascot-head {
  animation: head-bob-idle 3.6s ease-in-out infinite;
  animation-delay: 0.2s;
}

/* Arms Swaying */
@keyframes hand-float-l {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-3deg); }
}
@keyframes hand-float-r {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}
.mascot[data-state="idle"] .arm-l {
  animation: hand-float-l 3.2s ease-in-out infinite;
  animation-delay: 0.1s;
}
.mascot[data-state="idle"] .arm-r {
  animation: hand-float-r 3.2s ease-in-out infinite;
  animation-delay: 0.4s;
}

/* Headphone Ear Sway */
@keyframes ear-sway-l {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(-2deg); }
}
.ear-l {
  animation: ear-sway-l 3.6s ease-in-out infinite;
}

/* Core Glow Pulse */
@keyframes core-dot-pulse {
  0%, 100% { fill: var(--c-bright-cyan); filter: drop-shadow(0 0 3px var(--c-bright-cyan)); opacity: 0.7; }
  50% { fill: var(--c-neon-glow); filter: drop-shadow(0 0 12px var(--c-neon-glow)); opacity: 1; }
}
.core-orb-dot {
  animation: core-dot-pulse 2s infinite alternate ease-in-out;
  transform-origin: 1097px 696px;
}

/* Eyes / Core Glow Filter */
.eyes, .core-group {
  filter: drop-shadow(0 0 8px rgba(91, 219, 250, 0.7));
}

/* Shadow underneath legs */
@keyframes shadow-scale {
  0%, 100% { transform: scale(1) translateY(45px); opacity: 0.38; }
  50% { transform: scale(0.88) translateY(45px); opacity: 0.22; }
}
.mascot-shadow-group {
  animation: shadow-scale 3.6s ease-in-out infinite;
  transform-origin: 1024px 1080px;
}

/* Blinking class overrides (Fully closes eyes like sleeping state) */
.eye-l-group, .eye-r-group {
  transition: transform 0.1s ease, opacity 0.1s ease;
}
.eye-l-group.blinking, .eye-r-group.blinking {
  transform: scaleY(0.01) scaleX(1.1) !important;
  opacity: 0.15 !important;
}

/* Procedural Zzz particle styling */
.sleep-zzz {
  position: fixed;
  color: var(--color-primary);
  font-weight: 800;
  z-index: 100;
  pointer-events: none;
  font-family: var(--font-display);
  animation: float-zzz 4s linear forwards;
  opacity: 0;
}
@keyframes float-zzz {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  10% { opacity: 0.8; }
  80% { opacity: 0.4; }
  100% { opacity: 0; transform: translate(30px, -70px) scale(1.1); }
}

/* State changes animations mapping */
.mascot[data-state="idle"] { animation: float-ambient 3.6s ease-in-out infinite; }
.mascot[data-state="listening"] { animation: float-listening 2s ease-in-out infinite; }
.mascot[data-state="listening"] .arm-l { transform: translate(12px, -12px) rotate(6deg); }
.mascot[data-state="listening"] .arm-r { transform: translate(-12px, -12px) rotate(-6deg); }
.mascot[data-state="listening"] .mascot-head { transform: rotate(-3deg); }

.mascot[data-state="searching"] { animation: float-searching 1s ease-in-out infinite; }
.mascot[data-state="searching"] .core-orb-dot { animation: core-dot-pulse 0.4s infinite alternate ease-in-out; }
.mascot[data-state="searching"] .arm-l { animation: hand-scan-l 1s infinite alternate ease-in-out; }
.mascot[data-state="searching"] .arm-r { animation: hand-scan-r 1s infinite alternate-reverse ease-in-out; }
@keyframes hand-scan-l {
  from { transform: translate(-10px, -8px); }
  to { transform: translate(4px, 0); }
}
@keyframes hand-scan-r {
  from { transform: translate(4px, 0); }
  to { transform: translate(-10px, -8px); }
}

.mascot[data-state="speaking"] { animation: float-speaking 2.5s ease-in-out infinite; }
.mascot[data-state="speaking"] .arm-l { animation: arm-talk-l 0.8s infinite alternate ease-in-out; }
.mascot[data-state="speaking"] .arm-r { animation: arm-talk-r 0.8s infinite alternate-reverse ease-in-out; }
@keyframes arm-talk-l {
  from { transform: translateY(0); }
  to { transform: translateY(-6px) rotate(-3deg); }
}
@keyframes arm-talk-r {
  from { transform: translateY(0); }
  to { transform: translateY(-6px) rotate(3deg); }
}

.mascot[data-state="happy"] { animation: float-happy 0.8s ease-in-out infinite; }
.mascot[data-state="happy"] .arm-l { transform: translate(-15px, -60px) rotate(-30deg); }
.mascot[data-state="happy"] .arm-r { transform: translate(15px, -60px) rotate(30deg); }
.mascot[data-state="happy"] .mascot-head { transform: scale(1.03) rotate(1.5deg); }

/* Startle / Panic Wakeup Bounce */
.mascot[data-state="startle"] { animation: bounce-startle 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.mascot[data-state="startle"] .mascot-head { transform: translateY(-16px) rotate(6deg) scale(1.05); }
.mascot[data-state="startle"] .arm-l { transform: translate(-12px, -35px) rotate(-25deg); }
.mascot[data-state="startle"] .arm-r { transform: translate(12px, -35px) rotate(25deg); }
.mascot[data-state="startle"] .eye-l-group, 
.mascot[data-state="startle"] .eye-r-group { transform: scale(1.3) !important; }
@keyframes bounce-startle {
  0% { transform: scale(1) translateY(0); }
  30% { transform: scale(0.92, 1.1) translateY(-22px); }
  60% { transform: scale(1.04, 0.95) translateY(4px); }
  100% { transform: scale(1) translateY(0); }
}

.mascot[data-state="error"] { animation: float-error 0.2s linear infinite; }
.mascot[data-state="error"] .core-orb-dot { fill: var(--color-error); filter: drop-shadow(0 0 12px var(--color-error)); animation: none; }
.mascot[data-state="error"] .arm-l { transform: translate(-8px, -12px) rotate(-12deg); }
.mascot[data-state="error"] .arm-r { transform: translate(8px, -12px) rotate(12deg); }
.mascot[data-state="error"] .mascot-head { animation: jitter 0.15s infinite; }
@keyframes jitter {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  50% { transform: translate(-2px, 1.5px) rotate(-1.5deg); }
}

.mascot[data-state="sleeping"] { animation: float-sleeping 4.5s ease-in-out infinite; }
.mascot[data-state="sleeping"] .arm-l, .mascot[data-state="sleeping"] .arm-r { transform: translateY(18px) scale(0.85); opacity: 0.45; }
.mascot[data-state="sleeping"] .mascot-head { transform: translateY(3px) rotate(3deg); }

/* ============================================================
   OVERLAY SLIDE VIEWERS MODAL (16:9 SCREEN)
   ============================================================ */
.pres-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(23, 28, 45, 0.45);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-smooth);
}

.pres-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.pres-overlay-container {
  width: 90vw;
  max-width: 1200px;
  height: calc(90vw * 9 / 16 + 50px); /* Keep aspect ratio 16:9 + header space */
  max-height: 85vh;
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(23, 28, 45, 0.25);
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform var(--t-smooth) var(--t-spring);
}

.pres-overlay.active .pres-overlay-container {
  transform: scale(1);
}

.pres-overlay-header {
  padding: 12px 24px;
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pres-overlay-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-dark-navy);
}
.pres-overlay-title i {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

.pres-close-btn {
  padding: 6px 14px;
  border-radius: var(--radius-md);
  background: var(--color-primary-dim);
  border: 1px solid rgba(48, 103, 179, 0.12);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}
.pres-close-btn:hover {
  background: var(--color-error);
  color: #ffffff;
  border-color: var(--color-error);
}
.pres-close-btn i {
  width: 12px;
  height: 12px;
}

.pres-overlay-body {
  flex: 1;
  background: #f1f5f9;
  position: relative;
}
.pres-overlay-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ============================================================
   TOAST NOTIFICATION SYSTEM
   ============================================================ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10000;
  transform: translateY(120px);
  opacity: 0;
  transition: transform 0.4s var(--t-spring), opacity 0.3s ease;
  pointer-events: none;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast i {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}
.toast span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-dark-navy);
}

/* ============================================================
   DOWNLOAD BUTTONS STYLING
   ============================================================ */
.download-slides-btn, .download-image-btn {
  background: var(--color-surface) !important;
  color: var(--color-primary) !important;
  border: 1px solid var(--color-primary) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}
.download-slides-btn:hover, .download-image-btn:hover {
  background: rgba(48, 103, 179, 0.05) !important;
  color: var(--color-primary-hover) !important;
  border-color: var(--color-primary-hover) !important;
  box-shadow: none !important;
}

.pres-download-btn {
  padding: 6px 14px;
  border-radius: var(--radius-md);
  background: var(--color-primary-dim);
  border: 1px solid rgba(48, 103, 179, 0.12);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.pres-download-btn:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}
.pres-download-btn i {
  width: 12px;
  height: 12px;
}

/* ============================================================
   FLOATING SUGGESTIONS BAR (UX/UI IMPROVEMENTS)
   ============================================================ */
.floating-suggestions-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  height: 0;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  overflow: hidden;
  background: transparent;
  z-index: 40;
  flex-wrap: wrap;
  border-top: none;
  transition: height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-suggestions-bar.visible {
  height: auto;
  min-height: 48px;
  padding: 8px 24px 12px 24px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.suggest-chip {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.suggest-chip:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(48, 103, 179, 0.25);
}

.suggest-chip span {
  font-family: var(--font-body);
}

.suggest-chip .chip-emoji {
  font-size: 0.9rem;
  display: inline-block;
  line-height: 1;
}

.suggest-chip i {
  width: 14px;
  height: 14px;
}

/* Chat Session Delete Button */
.delete-chat-btn {
  opacity: 0;
  transition: all 0.2s ease;
}

.chat-item:hover .delete-chat-btn {
  opacity: 1;
}

.delete-chat-btn:hover {
  background-color: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
}
