/* Modern Meeting Assistant - Sidebar Design System (Light Mode) */
:root {
  /* Primary palette - Deep indigo with coral accent */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: rgba(79, 70, 229, 0.08);
  --primary-glow: rgba(79, 70, 229, 0.12);
  
  /* Accent colors */
  --accent: #f97316;
  --accent-light: rgba(249, 115, 22, 0.08);
  
  /* Surface colors - Light mode */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-elevated: #ffffff;
  --bg-card: #f1f5f9;
  
  /* Text colors - Light mode */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  /* Border colors - Light mode */
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.1);
  
  /* Semantic colors */
  --success: #16a34a;
  --success-light: rgba(22, 163, 74, 0.1);
  --warning: #d97706;
  --warning-light: rgba(217, 119, 6, 0.1);
  --danger: #dc2626;
  --danger-light: rgba(220, 38, 38, 0.1);
  
  /* Typography */
  --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Monaco', monospace;
  
  /* Spacing & sizing */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  /* Shadows - Light mode */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.15);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* App Container - Sidebar style */
.app-container {
  max-width: 420px;
  width: 100%;
  height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

/* Header */
.app-header {
  background: var(--bg-elevated);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

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

.app-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-icon {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.brand-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

/* Connection Badge - combines status dot with pill design */
.connection-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 11px;
  transition: all 0.3s ease;
}

.connection-badge .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.connection-badge .status-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Connected state */
.connection-badge.connected {
  background: var(--success-light);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.connection-badge.connected .status-dot {
  background: var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
}

.connection-badge.connected .status-label {
  color: var(--success);
}

/* Connecting state */
.connection-badge.connecting {
  background: var(--warning-light);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.connection-badge.connecting .status-dot {
  background: var(--warning);
  animation: pulse-dot 1s ease-in-out infinite;
}

.connection-badge.connecting .status-label {
  color: var(--warning);
}

/* Disconnected state */
.connection-badge.disconnected {
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.connection-badge.disconnected .status-dot {
  background: var(--text-muted);
}

.connection-badge.disconnected .status-label {
  color: var(--text-muted);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

/* Tab Navigation */
.tab-nav {
  display: flex;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  font-family: var(--font-family);
}

.tab-btn:hover {
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.02);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--primary-light);
}

.tab-btn svg {
  width: 14px;
  height: 14px;
}

.tab-btn span:not(.tab-badge):not(.notification-dot) {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.tab-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 16px);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 8px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 8px;
  min-width: 14px;
  text-align: center;
}

.notification-dot {
  display: none;
  position: absolute;
  top: 4px;
  right: calc(50% - 12px);
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.notification-dot.show {
  display: block;
}

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

/* Tab Content Container */
.tab-content-container {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.tab-panel {
  display: none;
  height: 100%;
  overflow-y: auto;
  padding: 8px;
  animation: fadeIn 0.25s ease-out;
}

.tab-panel.active {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Transcript tab specific - fit to window */
#transcript.tab-panel.active {
  gap: 6px;
  overflow: hidden;
}

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

/* Panel Section */
.panel-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.panel-section.full-height {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.02);
}

.section-header h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.section-header h3 svg {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
}

.corner-notification-dot {
  display: none;
  position: absolute;
  top: 12px;
  right: 16px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  z-index: 5;
}

.corner-notification-dot.show {
  display: block;
}

.section-status {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.section-status.active {
  background: var(--success-light);
  color: var(--success);
  border-color: rgba(22, 163, 74, 0.2);
}

.section-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
}

/* Transcript Content */
.transcript-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.transcript-content {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: var(--bg-elevated);
}

/* Chat Messages */
.chat-message {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
  animation: fadeIn 0.3s ease-out;
}

.chat-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
  margin-left: 4px;
  font-weight: 500;
}

.chat-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top-left-radius: 4px;
  padding: 12px 16px;
  max-width: 90%;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-primary);
}

.chat-bubble.important {
  border-left: 3px solid var(--accent);
  background: var(--accent-light);
}

/* Suggestions Content */
.suggestions-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.suggestions-content {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
}

.suggestion-chips, .chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip, .suggestion-chip {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-family);
}

.chip:hover, .suggestion-chip:hover {
  background: rgba(79, 70, 229, 0.15);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.chip.static {
  cursor: default;
}

.chip.static:hover {
  transform: none;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  height: 100%;
}

.empty-state svg {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  opacity: 0.4;
  margin-bottom: 12px;
}

.empty-state p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  max-width: 200px;
  line-height: 1.5;
}

.error-state svg {
  color: var(--danger, #e53e3e);
  opacity: 0.7;
}

.error-state p {
  color: var(--danger, #e53e3e);
}

.ai-disabled-state svg {
  color: var(--text-muted);
  opacity: 0.5;
}

.ai-disabled-state p {
  color: var(--text-muted);
  font-style: italic;
}

/* Participants List */
.participants-list {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
}

.participant-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  margin-bottom: 8px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.participant-card:hover {
  transform: translateX(4px);
  border-color: var(--border);
}

.participant-card.active {
  background: var(--primary-light);
  border-color: var(--primary);
}

.participant-card.introduced {
  background: var(--warning-light);
  border-color: rgba(245, 158, 11, 0.2);
}

.participant-card.mentioned {
  background: rgba(0, 0, 0, 0.02);
  border-color: var(--border);
  opacity: 0.8;
}

.participant-card.sdk {
  background: var(--primary-light);
  border-color: rgba(79, 70, 229, 0.2);
}

.participant-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.participant-card.active .participant-avatar {
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(79, 70, 229, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

.participant-info {
  flex: 1;
  min-width: 0;
}

.participant-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.participant-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.participant-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.participant-status.active {
  background: var(--success-light);
  color: var(--success);
}

.participant-status.inactive {
  background: var(--bg-card);
  color: var(--text-muted);
}

.participant-status.introduced {
  background: var(--warning-light);
  color: var(--warning);
}

.participant-status.mentioned {
  background: var(--bg-card);
  color: var(--text-muted);
}

.participant-status.sdk {
  background: var(--primary-light);
  color: var(--primary);
}

.participant-messages, .participant-context {
  font-size: 11px;
  color: var(--text-muted);
}

.source-icon {
  margin-left: 4px;
  font-size: 12px;
}

/* Sentiment Container */
.sentiment-container {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sentiment-chart {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sentiment-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sentiment-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  flex-shrink: 0;
}

.sentiment-emoji {
  font-size: 20px;
}

.sentiment-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}

.sentiment-bar-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sentiment-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.sentiment-segment {
  height: 100%;
  transition: width 0.3s ease;
}

.sentiment-segment.positive {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.sentiment-segment.neutral {
  background: linear-gradient(90deg, #71717a, #52525b);
}

.sentiment-segment.negative {
  background: linear-gradient(90deg, #f87171, #ef4444);
}

.sentiment-percent {
  font-size: 11px;
  color: var(--text-muted);
}

.sentiment-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
}

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

.legend-dot.positive { background: var(--success); }
.legend-dot.neutral { background: var(--text-muted); }
.legend-dot.negative { background: var(--danger); }

.sentiment-info {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* AI Hero Section */
.ai-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-glow);
}

.ai-hero-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.ai-hero-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.ai-hero h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.ai-hero p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

/* Query Interface */
.query-interface {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.query-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.query-input-group input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-family);
  transition: all 0.2s ease;
}

.query-input-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.query-input-group input::placeholder {
  color: var(--text-muted);
}

.query-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-family);
}

.query-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.query-btn svg {
  width: 16px;
  height: 16px;
}

.query-results {
  margin-top: 16px;
  padding: 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
  /* Auto-expand to fit content */
  max-height: none;
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.query-results:empty {
  display: none;
}

/* Markdown Styling in Results */
.query-results h1, .query-results h2, .query-results h3, .query-results h4, .query-results h5,
.summary-results h1, .summary-results h2, .summary-results h3, .summary-results h4, .summary-results h5 {
  color: var(--text-primary);
  margin-top: 16px;
  margin-bottom: 8px;
}

.query-results h3, .summary-results h3 { font-size: 16px; }
.query-results h4, .summary-results h4 { font-size: 14px; }
.query-results h5, .summary-results h5 { font-size: 13px; }

.query-results ul, .query-results ol,
.summary-results ul, .summary-results ol {
  margin: 8px 0;
  padding-left: 20px;
}

.query-results li, .summary-results li {
  margin: 4px 0;
  position: relative;
}

.query-results code, .summary-results code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--primary);
}

.query-results strong, .summary-results strong {
  font-weight: 600;
  color: var(--text-primary);
}

.query-results p, .summary-results p {
  margin: 8px 0;
}

/* Summary Interface */
.summary-interface {
  padding: 16px;
  /* Allow content to expand */
  overflow: visible;
}

.summary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--accent) 0%, #ea580c 100%);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-family);
}

.summary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}

.summary-btn svg {
  width: 18px;
  height: 18px;
}

.summary-results {
  margin-top: 16px;
  padding: 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
  /* Auto-expand to fit content */
  max-height: none;
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.summary-results:empty {
  display: none;
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--text-secondary);
}

.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 0.8s ease-in-out infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-state p {
  margin: 0;
  font-size: 13px;
}

/* Corner Button (Settings) */
.corner-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-family);
  z-index: 50;
  box-shadow: var(--shadow);
}

.corner-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: rotate(90deg);
}

.corner-btn svg {
  width: 16px;
  height: 16px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

#zoom-output {
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 16px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid var(--border);
  line-height: 1.6;
  word-wrap: break-word;
}

#zoom-output h2 {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

#zoom-output h2:first-child {
  margin-top: 0;
}

#zoom-output pre {
  margin: 0;
  background: var(--bg-elevated);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: auto;
}

/* Settings Modal Styles */
.settings-section {
  margin-bottom: 16px;
}

.settings-section:last-child {
  margin-bottom: 0;
}

.settings-item {
  margin-bottom: 0;
}

.settings-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.settings-label svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

.settings-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.settings-select:hover {
  border-color: var(--primary);
  background-color: var(--bg-card);
}

.settings-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  background-color: var(--bg-card);
}

.settings-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.settings-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  position: relative;
}

.settings-button:hover {
  background: var(--bg-card);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
  transform: translateY(-1px);
}

.settings-button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.settings-button-icon svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.settings-button-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-button-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.settings-button-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.settings-button-arrow {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.settings-button:hover .settings-button-arrow {
  transform: translateX(2px);
  color: var(--primary);
}

/* Auth Modal Styles */
.auth-modal-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 16px;
  line-height: 1.5;
}

.auth-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.auth-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  cursor: pointer;
  outline: none;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  overflow: hidden;
}

.auth-action-btn:focus-visible {
  box-shadow: 0 0 0 2px var(--bg-secondary), 0 0 0 4px var(--primary);
}

.auth-action-btn.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 0 1px var(--primary), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.auth-action-btn.primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--primary-hover), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.auth-action-btn.secondary {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
}

.auth-action-btn.secondary:hover {
  background: var(--border);
  color: var(--text-primary);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .app-container {
    max-width: 100%;
    border-left: none;
    border-right: none;
  }
  
  .app-header {
    padding: 12px 16px;
  }
  
  .tab-btn span:not(.tab-badge):not(.notification-dot) {
    font-size: 10px;
  }
  
  .tab-btn svg {
    width: 16px;
    height: 16px;
  }
  
  .query-input-group {
    flex-direction: column;
  }
  
  .query-btn {
    width: 100%;
    justify-content: center;
  }
}
