/* ==========================================================================
   ARA v0.2.2 — Executive Realtime Meeting Advisor Theme
   Design System: Neo-Glassmorphism, High-Contrast Cyan/Azure Hologram
   ========================================================================== */

:root {
  --bg-base: #06090e;
  --bg-surface: #0c121e;
  --bg-surface-elevated: #131c2e;
  --bg-card: rgba(18, 26, 43, 0.75);
  --border-color: rgba(56, 189, 248, 0.18);
  --border-color-hover: rgba(56, 189, 248, 0.45);
  
  --primary: #38bdf8;
  --primary-hover: #0284c7;
  --primary-glow: rgba(56, 189, 248, 0.35);
  --accent-cyan: #22d3ee;
  --accent-blue: #3b82f6;
  
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.35);
  --warning: #f59e0b;
  --warning-glow: rgba(245, 158, 11, 0.35);
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.35);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --font-persian: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-latin: 'Plus Jakarta Sans', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.2);
  --shadow-elevated: 0 16px 36px rgba(0, 0, 0, 0.6);
}

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

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-persian);
  font-size: 15px;
  line-height: 1.6;
  overflow: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-elevated);
  text-align: center;
  position: relative;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.agenda-box {
  max-width: 520px;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #0284c7, #1e3a8a);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: white;
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 1px;
  margin-bottom: 16px;
  box-shadow: 0 0 24px rgba(2, 132, 199, 0.5);
}

.modal-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #f1f5f9;
}

.modal-header .subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.input-group {
  text-align: right;
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.input-group input, input[type="text"], input[type="password"], textarea, select {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-persian);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s ease;
}

.input-group input:focus, input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-persian);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.84rem;
}

.primary-btn {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: white;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
}

.primary-btn:hover {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary);
}

.w-full { width: 100%; }
.hidden { display: none !important; }

.auth-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

.modal-footer {
  margin-top: 24px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Quick Topic Chips */
.quick-topics {
  text-align: right;
  margin-bottom: 22px;
}

.topics-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-persian);
}

.chip:hover {
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary);
  border-color: var(--primary);
}

.chip.selected {
  background: var(--primary);
  color: #0c121e;
  font-weight: 600;
  border-color: var(--primary);
}

/* Error Banner */
.error-banner {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(239, 68, 68, 0.92);
  backdrop-filter: blur(10px);
  color: white;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 0.9rem;
  max-width: 90%;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.banner-close {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.1rem;
}

/* Main App Layout */
.app-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  position: relative;
  background: radial-gradient(circle at 50% 45%, #0d192e 0%, #06090e 75%);
}

/* Header */
.app-header {
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: rgba(8, 12, 20, 0.75);
  backdrop-filter: blur(16px);
  z-index: 10;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  color: #f8fafc;
}

.brand-desc {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 500;
}

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.state-idle .status-dot { background: var(--text-muted); }
.state-listening { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.4); color: #6ee7b7; }
.state-listening .status-dot { background: var(--success); box-shadow: 0 0 10px var(--success); }

.state-analyzing { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.4); color: #fcd34d; }
.state-analyzing .status-dot { background: var(--warning); box-shadow: 0 0 10px var(--warning); }

.state-speaking { background: rgba(56, 189, 248, 0.2); border-color: rgba(56, 189, 248, 0.5); color: #bae6fd; }
.state-speaking .status-dot { background: var(--primary); box-shadow: 0 0 10px var(--primary); }

.state-ready { background: rgba(16, 185, 129, 0.1); border-color: var(--border-color); color: var(--text-primary); }
.state-ready .status-dot { background: var(--success); }

/* Background Intelligence Badge */
.bg-intel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: #bae6fd;
  animation: fadeIn 0.3s ease;
}

.intel-icon {
  color: #fbbf24;
}

/* Audio VU Meter */
.vu-meter-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.vu-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.vu-bar-bg {
  width: 48px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.vu-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #10b981, #f59e0b, #ef4444);
  transition: width 0.08s ease;
}

.session-timer {
  font-family: var(--font-latin);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.mode-select-wrapper select {
  padding: 6px 12px;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-color-hover);
  color: #38bdf8;
  cursor: pointer;
}

.icon-btn {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  height: 38px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--primary);
  color: var(--text-primary);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.menu-trigger-btn {
  font-size: 0.86rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* Avatar Stage */
.avatar-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(16,54,96,.16) 0%, rgba(3,8,16,0) 62%);
}

.avatar-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#avatarCanvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
  display: block;
  pointer-events: none;
}

.avatar-aura {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(56, 189, 248, 0) 70%);
  pointer-events: none;
  z-index: 0;
  transition: all 0.5s ease;
  filter: blur(2px);
}

/* Evidence-based presence cues: restrained, reversible, and never diagnostic. */
.avatar-aura[data-expression="deep_listening"] { filter: saturate(1.12) brightness(1.08); }
.avatar-aura[data-expression="important_point"] { filter: saturate(1.16) brightness(1.1); }
.avatar-aura[data-expression="skeptical"] { filter: hue-rotate(8deg) saturate(.94); }
.avatar-aura[data-expression="low_audio"] { filter: hue-rotate(18deg) saturate(.9); }
.avatar-aura[data-expression="repetition"] { filter: brightness(.96); }
.avatar-aura[data-state="analyzing"] { transform: scale(1.08); opacity: .9; }
.avatar-aura[data-state="speaking"] { transform: scale(1.04); opacity: 1; }
.ask-ara-btn:disabled { cursor: wait; opacity: .7; filter: saturate(.7); }

/* Live Hearing Bubble */
.hearing-box {
  position: absolute;
  top: 28px;
  background: rgba(12, 18, 30, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.4);
  backdrop-filter: blur(14px);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  z-index: 5;
  max-width: 80%;
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hearing-icon {
  font-size: 1.1rem;
}

.hearing-tag {
  color: #38bdf8;
  font-weight: 700;
}

/* Realtime Subtitle */
.subtitle-box {
  position: absolute;
  bottom: 32px;
  background: rgba(12, 18, 30, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.45);
  backdrop-filter: blur(16px);
  padding: 16px 26px;
  border-radius: var(--radius-md);
  max-width: 720px;
  width: 90%;
  text-align: right;
  z-index: 5;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.subtitle-speaker {
  font-size: 0.8rem;
  color: #38bdf8;
  font-weight: 700;
  margin-bottom: 4px;
}

.subtitle-content {
  font-size: 1.02rem;
  line-height: 1.6;
  color: #f8fafc;
}

/* Bottom Control Dock */
.app-dock {
  height: 84px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border-color);
  background: rgba(8, 12, 20, 0.8);
  backdrop-filter: blur(16px);
  z-index: 10;
}

.dock-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-persian);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.mic-btn {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: white;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35);
}

.mic-btn:hover {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
}

.mic-btn.active {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.4);
}

.listen-toggle-btn {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
  position: relative;
}

.listen-toggle-btn:hover {
  background: rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
}

.listen-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.listen-toggle-btn.listen-off {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fcd34d;
}

.listen-toggle-btn.listen-off .listen-pulse {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.ask-ara-btn {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #bae6fd;
}

.ask-ara-btn:hover {
  background: rgba(56, 189, 248, 0.28);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

.stop-btn {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

.stop-btn:hover {
  background: rgba(239, 68, 68, 0.35);
}

/* Side Drawers */
.side-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 440px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.7);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-drawer.open {
  right: 0;
}

.history-search {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: rgba(0,0,0,.25);
  color: var(--text-primary);
  font-family: var(--font-persian);
  margin-bottom: 16px;
}
.meeting-history-list { display: flex; flex-direction: column; gap: 10px; }
.history-card { padding: 14px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: rgba(9,20,38,.7); cursor: pointer; }
.history-card:hover { border-color: var(--primary); background: rgba(20,56,88,.7); }
.history-card h4 { color: var(--text-primary); font-size: .95rem; margin-bottom: 4px; }
.history-card p { color: var(--text-secondary); font-size: .78rem; }
.archived-workspace { display:flex; flex-direction:column; gap:12px; }
.workspace-kicker { color:#67e8f9; font-size:.78rem; letter-spacing:.03em; }
.workspace-meta { color:var(--text-secondary); font-size:.82rem; }
.workspace-facts { display:flex; flex-wrap:wrap; gap:8px; color:#bae6fd; font-size:.78rem; }
.archived-query-form { display:flex; gap:8px; align-items:center; }
.archived-query-form input { flex:1; min-width:0; }
.archived-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.archived-actions span { color:#93c5fd; font-size:.75rem; }
.workspace-answer { padding:12px; border:1px solid rgba(103,232,249,.35); border-radius:12px; color:#e0f2fe; background:rgba(8,30,60,.58); line-height:1.8; }
@media (max-width: 560px) { .archived-query-form { flex-direction:column; align-items:stretch; } .archived-query-form .btn { width:100%; } }
.history-empty { color: var(--text-secondary); font-size: .88rem; padding: 18px 4px; }

.drawer-header {
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
}

.drawer-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.drawer-close:hover {
  color: var(--danger);
}

.drawer-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.drawer-intro {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Unified Menu Grid Body */
.menu-grid-body {
  padding: 20px;
}

.menu-nav-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: right;
  width: 100%;
}

.menu-card:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--primary);
  transform: translateX(-4px);
}

.card-icon {
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.card-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 2px;
}

.card-info p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.danger-card:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--danger);
}

/* Drop Zone */
.drop-zone {
  border: 2px dashed rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-md);
  padding: 28px 16px;
  text-align: center;
  background: rgba(56, 189, 248, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.drop-zone:hover {
  border-color: var(--primary);
  background: rgba(56, 189, 248, 0.12);
  color: var(--text-primary);
}

.drop-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.upload-progress {
  margin-top: 16px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--primary);
  transition: width 0.2s ease;
}

/* Background Jobs List */
.jobs-section {
  margin-top: 26px;
}

.jobs-section h4 {
  font-size: 0.88rem;
  color: #f1f5f9;
  margin-bottom: 12px;
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-item {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.job-name {
  font-weight: 600;
  color: #e2e8f0;
}

.job-status {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.status-completed { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
.status-running { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.status-failed { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }

/* Transcript */
.transcript-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.transcript-entry {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ara-entry {
  border-right: 3px solid var(--primary);
  background: rgba(56, 189, 248, 0.06);
}

.user-entry {
  border-right: 3px solid var(--accent-blue);
}

.entry-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.speaker-tag {
  font-weight: 700;
  color: #38bdf8;
}

.user-entry .speaker-tag {
  color: #93c5fd;
}

.entry-content {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #f1f5f9;
}

/* Tech Grid */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.tech-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
}

.tech-k {
  color: var(--text-secondary);
}

.tech-v {
  font-family: var(--font-latin);
  font-weight: 600;
  color: var(--text-primary);
}

.tech-v.ok { color: var(--success); }
.tech-v.warn { color: var(--warning); }
.tech-v.danger { color: var(--danger); }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

/* ==========================================================================
   Responsive Adaptations & Media Queries
   ========================================================================== */

/* Laptops / Smaller Desktops (<= 1366px) */
@media (max-width: 1366px) {
  .app-header {
    padding: 0 16px;
  }
  .avatar-aura {
    width: 380px;
    height: 380px;
  }
}

/* Tablets (<= 1024px) */
@media (max-width: 1024px) {
  .btn-text-desktop {
    display: none;
  }
  .icon-btn {
    padding: 0 8px;
  }
  .header-left .brand-desc {
    display: none;
  }
  .subtitle-box {
    width: 94%;
    bottom: 20px;
  }
}

/* Mobile & Small Tablets (<= 768px) */
@media (max-width: 768px) {
  body { overflow: hidden; }
  .app-layout { min-width: 0; overflow: hidden; }
  .app-header {
    height: 56px;
    padding: 0 12px;
  }
  .brand-name {
    font-size: 1rem;
  }
  .header-left, .header-right { gap: 6px; min-width: 0; }
  .header-left .status-pill { max-width: 118px; overflow: hidden; white-space: nowrap; }
  .header-right .header-action, .header-right .mode-select-wrapper, .header-right .menu-trigger-btn { display: none; }
  .avatar-stage { min-height: 0; }
  .avatar-aura { width: min(86vw, 360px); height: min(86vw, 360px); }
  #avatarCanvas { inset: 0; }
  .status-pill {
    padding: 4px 8px;
    font-size: 0.74rem;
  }
  .vu-meter-wrapper {
    display: none;
  }
  .session-timer {
    font-size: 0.8rem;
    padding: 2px 6px;
  }
  .mode-select-wrapper select {
    font-size: 0.76rem;
    padding: 4px 6px;
    max-width: 130px;
  }
  .app-dock {
    height: 72px;
    padding: 0 12px;
  }
  .dock-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  .side-drawer {
    width: 100vw;
    max-width: 100vw;
    right: -100vw;
  }
  .hearing-box {
    top: 14px;
    padding: 6px 14px;
    font-size: 0.8rem;
  }
  .subtitle-box {
    padding: 12px 16px;
  }
  .subtitle-content {
    font-size: 0.9rem;
  }
}

/* Ultra Small Mobile (<= 400px) */
@media (max-width: 400px) {
  .header-center {
    display: none;
  }
  .dock-btn span {
    font-size: 0.8rem;
  }
}
