/* ============================================================================
   VANGUARD INTELLIGENCE - PREMIUM CHAT THEME
   Media Monitoring & Digital Analytics Portal
   ============================================================================ */

/* Design Tokens & Theme Variables */
:root {
  color-scheme: dark;
  --bg-widget: #080c14;
  --bg-header: #0a0f1e;
  --bg-canvas: #0b1120;
  --bg-context: #090d18;
  --bg-sidebar: #060910;
  --bg-card: rgba(6, 182, 212, 0.03);
  --bg-card-hover: rgba(6, 182, 212, 0.07);
  
  /* Bot Message — Deep Obsidian / Slate with Ice Cyan Border */
  --bg-bot-bubble: #101726;
  --border-bot-bubble: rgba(56, 189, 248, 0.18);
  --text-bot-bubble: #e2e8f0;
  
  /* User Message — Slate Navy */
  --bg-user-bubble: #1e293b;
  --text-user-bubble: #f8fafc;
  
  /* Accent Colors — Executive Cobalt, Ice Cyan, Emerald */
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-cyan: #0284c7;
  --color-cyan-hover: #0369a1;
  --color-blue: #38bdf8;
  --color-blue-hover: #0284c7;
  --color-gold: #38bdf8;
  --color-gold-hover: #0284c7;
  --color-green: #10b981;
  
  --border-color: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);

  --sidebar-width: 280px;
}

/* Base Setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #060910;
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.01em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.4);
}

/* ============================================================================
   UNIVERSAL LUCIDE & ICON BASELINE
   Prevents unconstrained Lucide replacement SVGs from blowing up to 24px default
   ============================================================================ */
svg.lucide,
i[data-lucide] {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}


/* ============================================================================
   MAIN LAYOUT
   ============================================================================ */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  position: relative;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(6, 182, 212, 0.05) 0%, transparent 40%),
    radial-gradient(ellipse at 10% 90%, rgba(56, 189, 248, 0.03) 0%, transparent 45%),
    #060910;
}

/* ============================================================================
   LEFT SIDEBAR — MODERN MINIMAL REDESIGN
   ============================================================================ */
.app-sidebar {
  width: var(--sidebar-width);
  height: 100%;
  background: #07090f;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  padding: 0;
  z-index: 100;
  transition: transform var(--transition-normal);
  flex-shrink: 0;
  overflow: hidden;
}

/* Sidebar mobile backdrop */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.sidebar-backdrop.active {
  display: block;
  opacity: 1;
}

/* Brand Section */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0;
  flex-shrink: 0;
}

.sidebar-brand .brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(56,189,248,0.12), rgba(37,99,235,0.08));
  border: 1px solid rgba(56, 189, 248, 0.18);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(56,189,248,0.08);
}

.brand-name {
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
}

.brand-name h1 {
  font-size: 14.5px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.brand-name span {
  font-size: 9.5px;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  display: block;
  opacity: 0.75;
}

/* New Chat Button — Slim Premium */
.btn-new-chat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 14px 12px 12px;
  padding: 9px 14px;
  background: linear-gradient(135deg, #0f3460 0%, #1a4a8a 50%, #0f3460 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 8px;
  color: #e0f2fe;
  font-size: 12.5px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  outline: none;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 1px 3px rgba(0,0,0,0.3);
}

.btn-new-chat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(56,189,248,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-new-chat:hover {
  border-color: rgba(56, 189, 248, 0.45);
  color: #fff;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.15), inset 0 1px 0 rgba(255,255,255,0.1);
  transform: translateY(-1px);
}
.btn-new-chat:hover::before { opacity: 1; }
.btn-new-chat:active { transform: translateY(0); }

.btn-new-chat i,
.btn-new-chat svg {
  width: 14px !important;
  height: 14px !important;
  stroke-width: 2.2 !important;
  opacity: 0.85;
}

/* Sidebar Section */
.sidebar-section {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
  min-height: 0;
  padding: 0 8px;
}

.section-header {
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.5);
  letter-spacing: 0.1em;
  font-weight: 700;
  margin: 10px 4px 6px;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-count {
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 9.5px;
  color: rgba(148, 163, 184, 0.5);
  letter-spacing: 0;
  font-weight: 600;
}

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

/* Empty state — hidden by default, shown via JS when chat list is empty */
.chat-empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 16px;
  text-align: center;
  flex-grow: 1;
}
.chat-empty-state i,
.chat-empty-state svg {
  color: rgba(255, 255, 255, 0.08);
  width: 28px;
  height: 28px;
}
.chat-empty-state p {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.18);
  line-height: 1.6;
}

/* Chat Items — Minimal Clean */
.chat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  padding: 0 8px 0 10px;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  border: 1px solid transparent;
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
  gap: 8px;
  position: relative;
  box-sizing: border-box;
}

.chat-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
  border-left-color: rgba(56, 189, 248, 0.2);
}

.chat-item.active {
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.1);
  border-left-color: #38bdf8;
}

.chat-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  flex-grow: 1;
  min-width: 0;
}

/* Icon sizing inside chat items */
.chat-item .chat-item-icon,
.chat-item i,
.chat-item svg,
.chat-title-group i,
.chat-title-group svg {
  width: 13px !important;
  height: 13px !important;
  min-width: 13px !important;
  min-height: 13px !important;
  max-width: 13px !important;
  max-height: 13px !important;
  stroke-width: 1.8px !important;
  flex-shrink: 0 !important;
  color: rgba(100, 116, 139, 0.6);
  transition: color 0.15s ease;
}

.chat-item:hover .chat-item-icon,
.chat-item:hover i,
.chat-item:hover svg {
  color: #64748b;
}

.chat-item.active .chat-item-icon,
.chat-item.active i,
.chat-item.active svg {
  color: #38bdf8 !important;
}

/* Chat title text */
.chat-title {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(148, 163, 184, 0.75);
  flex: 1;
  min-width: 0;
  user-select: none;
  transition: color 0.15s ease;
  letter-spacing: 0;
}

.chat-item:hover .chat-title {
  color: #cbd5e1;
}

.chat-item.active .chat-title {
  color: #f1f5f9 !important;
  font-weight: 500 !important;
}

/* Inline Title Edit Input */
.chat-title-input {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #f8fafc;
  background: #090d16;
  border: 1px solid rgba(56,189,248,0.4);
  border-radius: 5px;
  padding: 3px 6px;
  width: 100%;
  outline: none;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.15);
  box-sizing: border-box;
}

/* Action Buttons (Edit + Delete) */
.chat-actions {
  display: flex;
  align-items: center;
  gap: 1px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.chat-item:hover .chat-actions,
.chat-item.editing .chat-actions {
  opacity: 1;
}

.btn-chat-action {
  background: transparent;
  border: none;
  color: rgba(100, 116, 139, 0.6);
  cursor: pointer;
  padding: 4px 3px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-chat-action i,
.btn-chat-action svg {
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  min-height: 12px !important;
  max-width: 12px !important;
  max-height: 12px !important;
  stroke-width: 1.8px !important;
}

.btn-chat-action:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.07);
}

.btn-edit-chat:hover {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.1) !important;
}

.btn-save-chat-title:hover {
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.1) !important;
}

.btn-cancel-chat-title:hover {
  color: #94a3b8 !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

.btn-delete-chat:hover {
  color: #f43f5e !important;
  background: rgba(244, 63, 94, 0.1) !important;
}

/* Header title edit button */
.btn-edit-header-title {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-edit-header-title:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
}

.btn-edit-header-title i,
.btn-edit-header-title svg {
  width: 13px !important;
  height: 13px !important;
}

/* Sidebar Footer — Minimal Icon Row */
.sidebar-footer {
  display: flex;
  flex-direction: row;
  gap: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 10px 12px;
  flex-shrink: 0;
}

.btn-footer-icon {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 8px 4px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgba(100, 116, 139, 0.7);
  cursor: pointer;
  transition: all 0.18s ease;
  outline: none;
  position: relative;
}

.btn-footer-icon:hover {
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.btn-footer-icon:active {
  transform: scale(0.97);
}

.btn-footer-icon i,
.btn-footer-icon svg {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  min-height: 15px !important;
  transition: color 0.18s ease;
  stroke-width: 1.8px !important;
}

.footer-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: 'Inter', sans-serif;
  opacity: 0.7;
}

.btn-footer-icon:hover .footer-label {
  opacity: 1;
}

/* ============================================================================
   MAIN AREA
   ============================================================================ */
.app-main {
  flex-grow: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-canvas);
  min-width: 0;
}

/* Header */
.main-header {
  height: 64px;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 5;
  gap: 12px;
  flex-shrink: 0;
}

.btn-toggle-sidebar {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.btn-toggle-sidebar:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
}
.btn-toggle-sidebar i,
.btn-toggle-sidebar svg { width: 18px; height: 18px; }

.active-persona-display {
  flex-grow: 1;
}

.active-persona-display h2 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

/* AI Status Badge (header right) */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ai-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11.5px;
  color: var(--color-green);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
}
.ai-status-badge:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
}

.ai-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: status-pulse 2s ease-in-out infinite;
}
.ai-status-dot.busy {
  background: var(--color-gold);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}
.ai-status-badge.ai-busy {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.2);
  color: var(--color-gold);
}
.ai-status-text { white-space: nowrap; }

.meta-item {
  display: inline-flex;
  align-items: center;
}

/* ============================================================================
   WELCOME SCREEN (Compact & Responsive - No Scroll)
   ============================================================================ */
.welcome-container {
  max-width: 720px;
  margin: auto;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.welcome-icon-glow {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.15);
  animation: icon-pulse 3s ease-in-out infinite;
}

.welcome-icon-glow svg {
  width: 28px;
  height: 32px;
}

.welcome-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 14px;
}

.welcome-header h2 {
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #fff 40%, rgba(6, 182, 212, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-header p {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Quick hint bar */
.quick-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.04);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  text-align: left;
  width: 100%;
}
.quick-hint i,
.quick-hint svg {
  color: var(--color-gold);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.quick-hint strong { color: var(--color-gold); }

/* Suggestion Grid */
.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

.suggestion-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}
.suggestion-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-gold));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.suggestion-card:hover {
  background: rgba(6, 182, 212, 0.05);
  border-color: rgba(6, 182, 212, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.suggestion-card:hover::before { opacity: 1; }
.suggestion-card:active { transform: translateY(0); }

.card-icon {
  width: 30px;
  height: 30px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cyan);
  margin-bottom: 8px;
  transition: all var(--transition-fast);
}
.card-icon i,
.card-icon svg,
.card-icon .lucide {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}
.suggestion-card:hover .card-icon {
  background: rgba(6, 182, 212, 0.14);
  color: var(--color-gold);
  border-color: rgba(56, 189, 248, 0.2);
}

.suggestion-card h3 {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.suggestion-card p {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 6px;
}

.card-cta {
  font-size: 11px;
  color: var(--color-cyan);
  font-weight: 600;
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.suggestion-card:hover .card-cta { opacity: 1; }

/* ============================================================================
   CHAT CANVAS & MESSAGES
   ============================================================================ */
.chat-canvas {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.messages-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 40px;
}

.message-wrapper {
  display: flex;
  width: 100%;
  gap: 12px;
  animation: msg-slide-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

.message-wrapper.user {
  justify-content: flex-end;
}
.message-wrapper.bot {
  justify-content: flex-start;
  align-items: flex-start;
}

/* Message avatars */
.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.msg-avatar svg,
.typing-avatar svg {
  width: 18px;
  height: 21px;
  flex-shrink: 0;
  display: block;
}

.msg-avatar.bot-avatar {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.msg-avatar.user-avatar {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-gold);
  font-family: 'Outfit', sans-serif;
}

.message-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 82%;
}
.message-wrapper.user .message-col { align-items: flex-end; }

.msg-sender {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0 4px;
  letter-spacing: 0.02em;
}
.message-wrapper.user .msg-sender { color: #38bdf8; }

.message-bubble {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.68;
  word-wrap: break-word;
  letter-spacing: 0.01em;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Bot bubble */
.message-wrapper.bot .message-bubble {
  background: linear-gradient(180deg, #111827 0%, #0e1626 100%);
  border: 1px solid var(--border-bot-bubble);
  color: var(--text-bot-bubble);
  border-top-left-radius: 4px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.45), 0 0 18px -4px rgba(56, 189, 248, 0.05);
}

/* User bubble */
.message-wrapper.user .message-bubble {
  background: linear-gradient(135deg, #1e293b 0%, #172338 100%);
  color: var(--text-user-bubble);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-top-right-radius: 4px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

/* Message timestamp */
.msg-timestamp {
  font-size: 10.5px;
  color: rgba(148, 163, 184, 0.55);
  padding: 0 4px;
}

/* Markdown inside bubbles */
.message-bubble p,
.message-bubble .chat-paragraph {
  margin-bottom: 11px;
  font-size: 14px;
  line-height: 1.68;
  color: #cbd5e1;
}
.message-bubble p:last-child,
.message-bubble .chat-paragraph:last-child { margin-bottom: 0; }
.message-bubble strong { color: #f8fafc; font-weight: 600; }
.message-bubble em { color: #94a3b8; font-style: italic; }
.message-bubble code {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 12.5px;
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.15);
}
.message-bubble pre {
  background: rgba(0, 0, 0, 0.55);
  padding: 14px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 12px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.message-bubble pre code {
  background: transparent;
  padding: 0;
  color: #e0f2fe;
  border: none;
}

/* Typewriter Word-by-Word Streaming Cursor */
.typing-cursor {
  display: inline-block;
  color: #38bdf8;
  font-weight: 700;
  margin-left: 2px;
  animation: blinkCursor 0.6s infinite;
  vertical-align: baseline;
  user-select: none;
}
@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.bot-text-content {
  width: 100%;
  word-break: break-word;
}

/* Executive Section Banners */
.report-section-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0 10px 0;
  padding: 8px 14px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.09) 0%, rgba(30, 41, 59, 0.35) 100%);
  border-left: 3px solid #38bdf8;
  border-radius: 0 8px 8px 0;
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  border-right: 1px solid rgba(56, 189, 248, 0.08);
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
}
.report-section-banner:first-child {
  margin-top: 2px;
}
.report-section-banner .section-icon {
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.report-section-banner .section-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #f0f9ff;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Structured Analysis Point Cards */
.analysis-points-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 14px 0;
}
.analysis-point-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  transition: all var(--transition-fast);
}
.analysis-point-card:hover {
  background: rgba(30, 41, 59, 0.55);
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}
.point-badge-wrapper {
  flex-shrink: 0;
  margin-top: 1px;
}
.point-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 22px;
  border-radius: 5px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  letter-spacing: 0.02em;
}
.point-content-wrapper {
  flex: 1;
  min-width: 0;
}
.point-title-bar {
  margin-bottom: 4px;
}
.point-title {
  font-size: 13.8px;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: -0.005em;
}
.point-body-text {
  font-size: 13.5px;
  line-height: 1.64;
  color: #cbd5e1;
}

/* Advisory / Compliance Callout Box */
.analysis-callout-box {
  margin: 14px 0 10px 0;
  padding: 12px 15px;
  background: rgba(15, 23, 42, 0.7);
  border-left: 3px solid #3b82f6;
  border-top: 1px solid rgba(59, 130, 246, 0.15);
  border-right: 1px solid rgba(59, 130, 246, 0.1);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 0 8px 8px 0;
}
.analysis-callout-box .callout-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.analysis-callout-box .callout-icon {
  font-size: 14px;
}
.analysis-callout-box .callout-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #93c5fd;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.analysis-callout-box .callout-body {
  font-size: 13.2px;
  line-height: 1.62;
  color: #cbd5e1;
}

/* Chat Message Unordered List */
.chat-msg-list {
  margin: 8px 0 12px 0;
  padding-left: 18px;
  list-style-type: none;
}
.chat-msg-list li {
  position: relative;
  padding-left: 6px;
  margin-bottom: 6px;
  line-height: 1.62;
  color: #cbd5e1;
  font-size: 13.8px;
}
.chat-msg-list li::before {
  content: "•";
  position: absolute;
  left: -12px;
  color: #38bdf8;
  font-weight: bold;
}

/* Citations */
.citations-area {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.07);
}

.citations-title {
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--color-blue);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.citations-title i,
.citations-title svg { width: 12px; height: 12px; }

.citations-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.citation-pill {
  font-size: 11px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  padding: 3px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: all var(--transition-fast);
  font-weight: 500;
}
.citation-pill:hover {
  background: rgba(56, 189, 248, 0.14);
  border-color: #38bdf8;
  transform: translateY(-1px);
}
.citation-pill i,
.citation-pill svg { width: 10px; height: 10px; }

/* ============================================================================
   ENTERPRISE CITATIONS & EVIDENCE ACCOUNTABILITY PANEL
   ============================================================================ */
.citations-container {
  margin-top: 12px;
  width: 100%;
}

.btn-citations-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.btn-citations-toggle:hover,
.btn-citations-toggle.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

.citation-toggle-icon {
  font-size: 12px;
}

.citation-count-badge {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.citation-toggle-arrow {
  font-size: 9px;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.citations-panel {
  margin-top: 10px;
  background: rgba(10, 15, 30, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 14px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  animation: fadeInCitationsPanel 0.25s ease forwards;
}

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

.citations-panel-header {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.citations-panel-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #f1f5f9;
  font-weight: 600;
}

.citations-panel-desc {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 3px;
  line-height: 1.4;
}

.citations-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.citation-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 10px 12px;
  transition: all 0.2s ease;
}

.citation-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(56, 189, 248, 0.25);
}

.citation-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.citation-card-ident {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.citation-type-badge {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-widget {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.badge-timeline {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-document {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-db {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.citation-card-title {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
}

.citation-card-reason {
  background: rgba(56, 189, 248, 0.04);
  border-left: 3px solid #38bdf8;
  padding: 5px 8px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 6px;
  font-size: 11px;
  line-height: 1.45;
  color: #cbd5e1;
}

.reason-label {
  font-weight: 600;
  color: #38bdf8;
  margin-right: 4px;
}

.citation-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10.5px;
  color: #64748b;
  margin-top: 4px;
}

.c-meta-item code {
  background: rgba(0, 0, 0, 0.3);
  padding: 1px 5px;
  border-radius: 3px;
  color: #38bdf8;
  font-size: 10px;
}

.citation-action-link,
.citation-action-btn {
  font-size: 10.5px;
  color: #38bdf8;
  text-decoration: none;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.citation-action-link:hover,
.citation-action-btn:hover {
  background: #38bdf8;
  color: #0f172a;
}

/* ============================================================================
   TYPING INDICATOR — Improved
   ============================================================================ */
.typing-indicator {
  display: none;
  align-items: flex-start;
  gap: 12px;
  margin: 4px auto 0 auto;
  max-width: 800px;
  width: 100%;
  padding: 0;
}

.typing-indicator.visible { display: flex; }

.typing-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: icon-pulse 2s ease-in-out infinite;
}

.typing-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-bot-bubble);
  border: 1px solid var(--border-bot-bubble);
  border-radius: 14px;
  border-top-left-radius: 4px;
  padding: 12px 16px;
  min-width: 260px;
  max-width: 340px;
}

.typing-indicator span {
  font-size: 12px;
  color: var(--text-secondary);
  font-style: italic;
}

.dots-wrapper {
  display: flex;
  gap: 4px;
  align-items: center;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-cyan);
  opacity: 0.4;
  animation: pulse-dot 1.2s infinite alternate;
}
.dot:nth-child(2) { animation-delay: 0.35s; background-color: var(--color-gold); }
.dot:nth-child(3) { animation-delay: 0.7s; }

/* ============================================================================
   INPUT DOCK
   ============================================================================ */
.input-dock-wrapper {
  padding: 12px 24px 14px;
  background: rgba(10, 15, 30, 0.97);
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(10px);
}

.input-dock {
  display: flex;
  align-items: flex-end;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 8px 8px 8px 8px;
  max-width: 800px;
  width: 100%;
  gap: 8px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-dock:focus-within {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.16);
}

.btn-attach {
  width: 38px;
  height: 38px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}
.btn-attach:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}
.btn-attach:active {
  transform: translateY(0);
}
.btn-attach i,
.btn-attach svg,
.btn-attach .lucide {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.input-dock textarea {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13.5px;
  resize: none;
  min-height: 24px;
  max-height: 140px;
  line-height: 1.5;
  padding: 6px 4px;
  align-self: center;
}

.input-dock textarea::placeholder {
  color: rgba(148, 163, 184, 0.45);
}

.btn-send {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.35);
  outline: none;
}
.btn-send:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}
.btn-send:active { 
  transform: translateY(0); 
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.3); 
}
.btn-send svg,
.btn-send i,
.btn-send .lucide { width: 16px; height: 16px; stroke-width: 2.2; }

.input-disclaimer {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.4);
  margin-top: 8px;
  text-align: center;
  line-height: 1.4;
}
.input-disclaimer kbd {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: inherit;
  color: var(--text-secondary);
}

/* ============================================================================
   EMBED SPECIFIC (FLOATING WIDGET)
   ============================================================================ */
.vanguard-chat-widget {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: 420px;
  height: calc(100vh - 120px);
  max-height: 800px;
  background-color: var(--bg-widget);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  transform-origin: bottom right;
}

.vanguard-chat-widget.hidden {
  opacity: 0;
  transform: scale(0.9) translateY(40px);
  pointer-events: none;
}

/* Header Inside Widget */
.widget-header {
  height: 64px;
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
}

.brand-logo svg { filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.2)); }

.brand-info h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-gold);
}
.brand-info p { font-size: 11.5px; color: var(--text-secondary); }

.btn-close-header {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.btn-close-header:hover { background: rgba(255, 255, 255, 0.05); color: var(--color-gold); }
.btn-close-header i,
.btn-close-header svg { width: 15px; height: 15px; }

/* Context Strip */
.context-strip {
  height: 36px;
  background-color: var(--bg-context);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  font-size: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.context-strip i,
.context-strip svg { width: 13px; height: 13px; color: var(--color-gold); }
.context-strip strong { color: var(--color-gold); font-weight: 500; }

.vanguard-floating-close {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-hover));
  color: #000;
  border: none;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  z-index: 1001;
}
.vanguard-floating-close:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(56, 189, 248, 0.5);
}
.vanguard-floating-close i,
.vanguard-floating-close svg { width: 22px; height: 22px; stroke-width: 2.5; }

/* ============================================================================
   MODALS & SLIDE-OVERS
   ============================================================================ */
.dashboard-panel-overlay, .modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.dashboard-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 860px;
  max-width: 95vw;
  background: #090e17;
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.5);
  animation: slide-over 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
  overflow: hidden;
}

.panel-header, .modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 15, 30, 0.8);
  flex-shrink: 0;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-title h3 { font-size: 16px; color: #fff; }
.accent-color { color: var(--color-gold); width: 18px; height: 18px; }

.btn-close {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}
.btn-close:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
  transform: translateY(-1px);
}
.btn-close:active { transform: translateY(0); }
.btn-close i,
.btn-close svg { width: 15px; height: 15px; }

.panel-scroll-content {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Dashboard Cards */
.dashboard-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}
.dashboard-card:hover { border-color: var(--border-hover); }

.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.01);
}

.db-title-group { display: flex; align-items: center; gap: 10px; }

.db-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.es-badge { background: rgba(56, 189, 248, 0.1); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.15); }
.pg-badge { background: rgba(56, 189, 248, 0.1); color: var(--color-gold); border: 1px solid rgba(56, 189, 248, 0.15); }

.led-indicator { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.led-dot { width: 6px; height: 6px; border-radius: 50%; }
.led-dot.online { background: var(--color-green); box-shadow: 0 0 8px var(--color-green); animation: status-pulse 2s ease-in-out infinite; }
.led-dot.offline { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,0.4); }
.led-text { color: var(--text-secondary); font-weight: 500; }

.db-host-label { font-size: 11px; font-family: monospace; color: var(--text-secondary); }

.card-body { padding: 18px; }

.metric-row { display: flex; gap: 12px; margin-bottom: 18px; }

.metric-box {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  padding: 14px;
  border-radius: 10px;
  text-align: center;
}

.metric-val {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--color-gold);
  font-family: 'Outfit', sans-serif;
}
.metric-lbl { font-size: 11px; color: var(--text-secondary); margin-top: 4px; display: block; }

.table-badge {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 6px;
  color: #cbd5e1;
  font-family: monospace;
}

.table-badges-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

.index-list-section h4, .table-list-section h4, .sql-executor-section h4 {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  font-weight: 700;
}

.custom-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
.dashboard-table th {
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 14px;
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}
.dashboard-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: #cbd5e1;
}
.dashboard-table tr:last-child td { border-bottom: none; }
.dashboard-table tr:hover td { background: rgba(255,255,255,0.01); }

.text-center { text-align: center; }

/* SQL */
.sql-editor-container { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.sql-editor-container textarea {
  width: 100%; height: 80px;
  background: #000; border: 1px solid var(--border-color); border-radius: 8px;
  padding: 12px; color: #38bdf8; font-family: monospace; font-size: 12px;
  outline: none; resize: none;
}

.btn-execute-sql {
  background: var(--color-gold); color: #000; border: none; border-radius: 8px;
  padding: 10px; font-size: 12.5px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background var(--transition-fast);
}
.btn-execute-sql:hover { background: var(--color-gold-hover); }

.sql-error-message {
  display: none; color: #ef4444; font-size: 11.5px; margin-top: 8px;
  background: rgba(239, 68, 68, 0.05); border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 8px 12px; border-radius: 6px;
}
.sql-results-wrapper { margin-top: 14px; border-radius: 8px; overflow: hidden; max-height: 200px; overflow-y: auto; }
.empty-results-placeholder {
  font-size: 12px; color: var(--text-secondary); text-align: center; padding: 20px;
  background: rgba(255, 255, 255, 0.01); border: 1px dashed var(--border-color); border-radius: 8px;
}

/* ============================================================================
   MODAL BOX
   ============================================================================ */
.modal-box {
  width: 500px;
  background: #090e17;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  animation: modal-pop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wizard-modal-box {
  width: 620px;
  max-width: 95%;
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-label {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-group textarea {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  resize: none;
  transition: border-color var(--transition-fast);
}
.form-group textarea:focus { border-color: rgba(56, 189, 248, 0.4); }

.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex-grow: 1; }

.form-group input[type="range"] {
  accent-color: var(--color-gold);
  width: 100%;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.setting-value {
  color: var(--color-gold);
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: rgba(10, 15, 30, 0.6);
  gap: 10px;
}

/* Primary button - Executive Cobalt & Ice Cyan */
.btn-pri {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 9px;
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.btn-pri:hover {
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}
.btn-pri:active { 
  transform: translateY(0); 
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}
.btn-pri:disabled {
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.2) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Global Select & Option Dark Mode Styling */
select {
  color-scheme: dark !important;
}

select option {
  background-color: #0b1120 !important;
  color: #f8fafc !important;
  padding: 10px 14px;
}

select option:hover,
select option:focus,
select option:active,
select option:checked {
  background-color: #1e293b !important;
  color: #38bdf8 !important;
}

/* Setting Select & Inputs */
.setting-select {
  background-color: #0d1527 !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 8px;
  color: #f1f5f9 !important;
  padding: 9px 12px;
  width: 100%;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  outline: none;
  color-scheme: dark !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.setting-select:focus,
.setting-select:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15) !important;
}

.setting-select option {
  background-color: #0d1527 !important;
  color: #f8fafc !important;
  padding: 10px 14px;
}

.setting-select option:checked {
  background-color: #1e293b !important;
  color: #38bdf8 !important;
  font-weight: 600;
}

.setting-input {
  background-color: #0d1527 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px;
  color: #f1f5f9 !important;
  padding: 8px 12px;
  width: 100%;
  font-size: 13px;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  outline: none;
  color-scheme: dark !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.setting-input:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15) !important;
}

/* Secondary button */
.btn-sec {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 9px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.btn-sec:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(56, 189, 248, 0.3);
  color: #fff;
}

/* ============================================================================
   WIZARD MODAL SPECIFIC
   ============================================================================ */
.wizard-step-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wizard-step-header h3 { font-size: 16px; color: #fff; }

.step-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}

.step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  transition: all var(--transition-fast);
}
.step-dot.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--color-gold);
  color: var(--color-gold);
}
.step-dot.done {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--color-green);
  color: var(--color-green);
}

.step-line {
  flex: 1;
  height: 1px;
  background: var(--border-color);
  max-width: 32px;
}
.step-line.active { background: rgba(56, 189, 248, 0.3); }

.wizard-textarea {
  width: 100%;
  height: 140px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.6;
  outline: none;
  resize: none;
  transition: border-color var(--transition-fast);
}
.wizard-textarea:focus { border-color: rgba(56, 189, 248, 0.4); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.06); }
.wizard-textarea::placeholder { color: rgba(148, 163, 184, 0.4); }

.wizard-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(56, 189, 248, 0.04);
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.wizard-hint i,
.wizard-hint svg { color: var(--color-blue); width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }

.wizard-select {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: 9px;
  padding: 11px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  width: 100%;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.wizard-select:hover:not(:disabled) { border-color: rgba(56, 189, 248, 0.3); }
.wizard-select:focus:not(:disabled) { border-color: var(--color-gold); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.08); }
.wizard-select:disabled { opacity: 0.5; cursor: not-allowed; }

.wizard-preview-card {
  background: rgba(56, 189, 248, 0.03);
  border: 1px dashed rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 16px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: slide-in 0.25s ease-out;
}

.wizard-search-box {
  display: flex;
  gap: 8px;
  width: 100%;
}
.wizard-search-box input {
  flex-grow: 1;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border-color);
  border-radius: 9px;
  padding: 10px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition-fast);
}
.wizard-search-box input:focus, .wizard-search-input:focus { border-color: rgba(56, 189, 248, 0.4) !important; }
#wizardPromptInput:focus { border-color: rgba(56, 189, 248, 0.4) !important; }

.btn-search-wizard {
  background: var(--color-gold); color: #000; border: none; border-radius: 9px;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--transition-fast); flex-shrink: 0;
}
.btn-search-wizard:hover { background: var(--color-gold-hover); }
.btn-search-wizard i,
.btn-search-wizard svg { width: 16px; height: 16px; stroke-width: 2.5; }

/* Preview labels */
.preview-item { display: flex; flex-direction: column; gap: 4px; }
.preview-label {
  font-size: 10.5px; text-transform: uppercase; color: var(--text-secondary);
  font-weight: 600; letter-spacing: 0.04em;
}

#previewQuery {
  font-family: monospace; font-size: 11.5px; color: #38bdf8;
  background: rgba(0, 0, 0, 0.4); padding: 4px 8px;
  border-radius: 6px; border: 1px solid rgba(56, 189, 248, 0.15); word-break: break-all;
}
#previewDescription { font-size: 12.5px; color: #cbd5e1; line-height: 1.5; }

/* Wizard pills */
.wizard-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.wizard-pill:hover {
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--color-gold);
}
.wizard-pill.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--color-gold);
  color: var(--color-gold);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.12);
}

/* Priority Badges */
.priority-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}
.priority-high { background: rgba(239, 68, 68, 0.12); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.25); }
.priority-medium { background: rgba(245, 158, 11, 0.12); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.priority-low { background: rgba(56, 189, 248, 0.12); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.25); }

/* Message bottom toolbar: Lampiran on left, Regenerasi on right */
.message-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
  flex-wrap: wrap;
}

.msg-action-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.msg-action-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Retry/Regenerate button */
.btn-retry-msg {
  background: rgba(56, 189, 248, 0.06) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  color: #7dd3fc !important;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  margin-top: 0;
  outline: none;
}
.btn-retry-msg:hover {
  background: rgba(56, 189, 248, 0.14) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  color: #38bdf8 !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(56, 189, 248, 0.18);
}
.btn-retry-msg:active { transform: translateY(0); }
.btn-retry-msg i,
.btn-retry-msg svg,
.btn-retry-msg .lucide { width: 13px; height: 13px; stroke-width: 2.2; transition: transform 0.4s ease; }
.btn-retry-msg:hover i,
.btn-retry-msg:hover svg,
.btn-retry-msg:hover .lucide { transform: rotate(180deg); }

/* Status indicators */
.status-indicator {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 7px 14px; border-radius: 20px;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.status-dot.online { background: var(--color-green); box-shadow: 0 0 8px rgba(16,185,129,0.4); }
.status-dot.offline { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,0.4); }
.status-label { font-size: 11.5px; font-weight: 500; color: var(--text-secondary); }

/* Context editable */
.context-editable-input {
  background: transparent; border: 1px solid transparent; outline: none;
  color: var(--color-gold); font-weight: 600; font-size: 12px;
  padding: 2px 6px; border-radius: 4px; width: 140px; cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}
.context-editable-input:focus, .context-editable-input:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background-color: rgba(255, 255, 255, 0.02);
}

/* ============================================================================
   RESPONSIVE — MOBILE
   ============================================================================ */
@media (max-width: 768px) {
  .app-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    transform: translateX(-100%);
    z-index: 100;
    width: 280px;
  }
  .app-sidebar.sidebar-open {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0,0,0,0.5);
  }

  .btn-toggle-sidebar { display: flex; }

  .main-header { padding: 0 16px; }
  .chat-canvas { padding: 16px; }
  .input-dock-wrapper { padding: 10px 16px 14px; }
  .input-dock { border-radius: 14px; }

  .messages-container { max-width: 100%; }
  .typing-indicator { padding-left: 0; }
  .message-bubble { max-width: 92%; }

  .dashboard-panel { width: 100vw; }
  .modal-box, .wizard-modal-box { width: 96vw; max-width: 96vw; }

  .suggestions-grid { grid-template-columns: 1fr; }
  .welcome-container { margin-top: 24px; padding: 16px; }
  .welcome-header h2 { font-size: 20px; }

  .ai-status-badge { display: none; }
  .form-row { flex-direction: column; }
}

/* ============================================================================
   KEYFRAMES
   ============================================================================ */
@keyframes slide-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes msg-slide-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slide-over {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.94) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes pulse-dot {
  from { opacity: 0.3; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1.1); }
}

@keyframes icon-pulse {
  0%, 100% { box-shadow: 0 0 25px rgba(6, 182, 212, 0.1); }
  50% { box-shadow: 0 0 40px rgba(6, 182, 212, 0.2); }
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(6, 182, 212, 0); }
  50% { box-shadow: 0 0 12px rgba(6, 182, 212, 0.15); }
}

@keyframes copy-flash {
  0% { background: rgba(6, 182, 212, 0.3); }
  100% { background: transparent; }
}

/* ============================================================================
   DOCUMENT INTELLIGENCE (PDF RAG & INSPECTION)
   ============================================================================ */

/* ── Active Document Bar (Above Input Dock) ── */
.active-doc-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 800px;
  margin-bottom: 8px;
  padding: 8px 14px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.09), rgba(56, 189, 248, 0.05));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  animation: slide-in 0.25s ease-out;
}

.doc-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.doc-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-bar-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.doc-bar-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.doc-bar-filename {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}

/* User Message Document Attachment Badge */
.user-doc-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 12px;
  font-weight: 500;
  max-width: 100%;
}

.user-doc-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.user-doc-badge .doc-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
  color: #f0f9ff;
  font-weight: 600;
}

.doc-bar-meta {
  font-size: 11px;
  color: #94a3b8;
}

.doc-bar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-doc-inspect {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 7px;
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: 5px 11px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.btn-doc-inspect:hover {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  border-color: #38bdf8;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.35);
  transform: translateY(-1px);
}

.btn-doc-inspect:active { transform: translateY(0); }
.btn-doc-inspect i,
.btn-doc-inspect svg { width: 14px; height: 14px; }

.btn-doc-detach {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  color: #94a3b8;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.btn-doc-detach:hover {
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fb7185;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.2);
  transform: translateY(-1px);
}

.btn-doc-detach:active { transform: translateY(0); }
.btn-doc-detach i,
.btn-doc-detach svg { width: 14px; height: 14px; }

/* ── Drag & Drop PDF Overlay ── */
.drag-drop-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 30, 0.88);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slide-in 0.2s ease;
}

.drag-drop-box {
  border: 2px dashed rgba(56, 189, 248, 0.6);
  border-radius: 20px;
  background: rgba(56, 189, 248, 0.04);
  padding: 40px 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.15);
  animation: glow-pulse 2s infinite alternate;
}

.drag-drop-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.drag-drop-box h3 {
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
}

.drag-drop-box p {
  font-size: 13px;
  color: #94a3b8;
  max-width: 320px;
}

/* ── Modal Inspeksi Hasil Konversi ── */
.doc-inspect-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 18, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: slide-in 0.2s ease;
}

.doc-inspect-modal {
  width: 100%;
  max-width: 860px;
  height: 85vh;
  max-height: 800px;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.1);
}

.inspect-header {
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inspect-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inspect-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
}

.inspect-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

.inspect-subtitle {
  font-size: 11px;
  color: #94a3b8;
  margin: 2px 0 0;
}

.inspect-header-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-quality {
  font-size: 11px;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  padding: 4px 10px;
}

.btn-close-inspect {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.btn-close-inspect:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
  transform: translateY(-1px);
}
.btn-close-inspect:active { transform: translateY(0); }

/* Inspect Tabs */
.inspect-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
  padding: 0 16px;
  gap: 8px;
}

.inspect-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.inspect-tab-btn i,
.inspect-tab-btn svg {
  width: 14px;
  height: 14px;
  transition: color 0.2s ease;
}

.inspect-tab-btn:hover {
  color: #e2e8f0;
  border-bottom-color: rgba(56, 189, 248, 0.4);
}

.inspect-tab-btn.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
  box-shadow: inset 0 -2px 0 #38bdf8;
}

/* Tab Content */
.inspect-tab-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Pagination bar in pages tab */
.inspect-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-selector-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
}

.inspect-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #f1f5f9;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  outline: none;
}

.inspect-select option {
  background: #0f172a;
  color: #f1f5f9;
}

.page-nav-btns {
  display: flex;
  gap: 4px;
}

.btn-page-nav {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  color: #cbd5e1;
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.btn-page-nav:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
  transform: translateY(-1px);
}

.btn-page-nav:active:not(:disabled) {
  transform: translateY(0);
}

.btn-page-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.btn-page-nav i,
.btn-page-nav svg {
  width: 14px;
  height: 14px;
}

.page-stats-pill {
  font-size: 11px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 6px;
}

/* Text Container */
.inspect-text-container {
  flex: 1;
  padding: 16px 20px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.25);
}

.inspect-pre {
  font-family: 'SF Mono', Consolas, 'Fira Code', monospace;
  font-size: 12.5px;
  line-height: 1.65;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  padding: 0;
}

/* Metadata Grid */
.inspect-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 20px;
  overflow-y: auto;
}

.inspect-meta-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inspect-meta-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.inspect-meta-val {
  font-size: 14px;
  color: #f1f5f9;
  font-weight: 600;
  word-break: break-all;
}

/* Search Tab */
.inspect-search-bar {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
}

.inspect-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #f1f5f9;
  padding: 8px 14px;
  font-size: 13px;
  outline: none;
}

.inspect-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15);
}

.btn-inspect-search {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: 0 18px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.32);
  outline: none;
}

.btn-inspect-search:hover {
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}

.btn-inspect-search:active { transform: translateY(0); }

.inspect-chunks-results {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inspect-chunk-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #38bdf8;
  border-radius: 8px;
  padding: 12px 14px;
}

.inspect-chunk-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 11px;
}

.inspect-chunk-page {
  color: #38bdf8;
  font-weight: 600;
}

.inspect-chunk-score {
  color: #94a3b8;
}

.inspect-chunk-text {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.55;
  white-space: pre-wrap;
}

.inspect-empty-search {
  text-align: center;
  color: #64748b;
  font-size: 13px;
  padding: 40px 0;
}

/* Footer */
.inspect-footer {
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inspect-footer-note {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.inspect-footer-note i,
.inspect-footer-note svg {
  width: 14px;
  height: 14px;
  color: #10b981;
}

.btn-inspect-discuss {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.32);
  outline: none;
}

.btn-inspect-discuss:hover {
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
  border-color: #38bdf8;
  color: #ffffff !important;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}

.btn-inspect-discuss:active { transform: translateY(0); }

.btn-inspect-discuss i,
.btn-inspect-discuss svg {
  width: 14px;
  height: 14px;
}

/* ── Interactive Document Citation Badge in Chat Messages ── */
.doc-citation-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 5px;
  padding: 1px 6px;
  margin: 0 2px;
  cursor: pointer;
  transition: all 0.15s ease;
  vertical-align: baseline;
}

.doc-citation-badge:hover {
  background: rgba(56, 189, 248, 0.28);
  border-color: rgba(56, 189, 248, 0.5);
  color: #fff;
  transform: scale(1.04);
}

/* ── Document Welcome Card in Bot Bubble ── */
.doc-welcome-card {
  margin: 6px 0 10px 0;
  padding: 12px 14px;
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
}

.doc-welcome-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.doc-welcome-title {
  font-size: 13px;
  font-weight: 700;
  color: #38bdf8;
}

.doc-welcome-summary {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 10px;
}

.doc-suggested-prompts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-prompt-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11.5px;
  color: #93c5fd;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.doc-prompt-chip:hover {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.35);
  color: #fff;
  transform: translateX(3px);
}

/* ============================================================================
   POSTGRESQL CHAT LOGS MODAL & TABLE STYLING
   ============================================================================ */
.logs-modal-box {
  width: 1000px;
  max-width: 95%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: #090e1a !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 25px rgba(56, 189, 248, 0.05) !important;
}

.logs-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.015);
}

.logs-table-wrapper {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(6, 10, 18, 0.6);
}

.logs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}

.logs-table th {
  background: rgba(15, 23, 42, 0.85);
  padding: 12px 16px;
  font-weight: 600;
  color: #94a3b8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.log-table-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
  transition: background 0.15s ease;
}

.log-table-row:hover {
  background: rgba(56, 189, 248, 0.04) !important;
}

.log-time-cell {
  padding: 12px 16px;
  color: #64748b;
  font-size: 11.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: nowrap;
}

.log-context-cell {
  padding: 12px 16px;
}

.log-question-cell {
  padding: 12px 16px;
  color: #f1f5f9;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
}

.log-action-cell {
  padding: 12px 16px;
  text-align: right;
  white-space: nowrap;
}

/* Badges */
.log-badge-general {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

.log-badge-topic {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-badge-issue {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Action Button "Buka" - Premium High-Contrast Executive Style */
.btn-log-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  outline: none;
}

.btn-log-action:hover {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transform: translateY(-1px);
}

.btn-log-action:hover i,
.btn-log-action:hover svg {
  color: #ffffff !important;
  transform: translate(1px, -1px);
}

.btn-log-action:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-log-action i,
.btn-log-action svg {
  width: 12px;
  height: 12px;
  color: #38bdf8;
  transition: transform 0.2s ease, color 0.2s ease;
}

.log-session-general {
  color: #64748b;
  font-size: 11px;
  font-style: italic;
  padding-right: 6px;
}

/* ============================================================================
   SETTINGS MODAL ENHANCED STYLING
   ============================================================================ */
.settings-modal-box {
  width: 530px !important;
  max-width: 95vw !important;
  background: #090e17 !important;
  border: 1px solid rgba(56, 189, 248, 0.22) !important;
  border-radius: 18px !important;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.08) !important;
  overflow: hidden !important;
}

.modal-subtitle {
  font-size: 11.5px;
  color: var(--text-secondary, #94a3b8);
  margin-top: 2px;
  font-weight: 400;
}

.header-icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(56, 189, 248, 0.09);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.settings-modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 80vh;
  overflow-y: auto;
}

.settings-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 15px 18px;
  transition: border-color 0.2s, background-color 0.2s;
}
.settings-card:hover {
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(255, 255, 255, 0.03);
}

.env-prompt-card {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.05) 0%, rgba(14, 165, 233, 0.01) 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 0.01em;
}

.badge-env-lock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.env-prompt-text {
  margin: 9px 0 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: #94a3b8;
}
.env-prompt-text code {
  background: rgba(0, 0, 0, 0.45);
  color: #38bdf8;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  font-family: 'Fira Code', Consolas, monospace;
}

.slider-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.slider-label-row label {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 500;
}

.setting-value-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.range-slider {
  accent-color: #38bdf8;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
}

.provider-status-badge {
  font-size: 11px;
  color: #94a3b8;
}

.vllm-test-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.btn-test-connection {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-test-connection:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.btn-cancel-settings {
  padding: 9px 18px;
  font-size: 13px;
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-cancel-settings:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
}



