/* Report Buddy - Precision Field Command Interface */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  /* Core Palette - Deep Navy & Burnished Gold */
  --bg-void: #060810;
  --bg-base: #0a0d14;
  --bg-elevated: #10141c;
  --bg-surface: #151a24;
  --bg-hover: #1a202c;
  --bg-input: #080b10;

  /* Gold Spectrum */
  --gold-50: #fdf9ef;
  --gold-100: #f9f0d8;
  --gold-200: #f2dca8;
  --gold-300: #e9c56f;
  --gold-400: #e0ac3e;
  --gold-500: #d4952a;
  --gold-600: #bc7620;
  --gold-700: #9c561c;
  --gold-800: #80451e;
  --gold-900: #6a3a1c;

  --accent: #e0ac3e;
  --accent-bright: #f0c35a;
  --accent-dim: #b8872e;
  --accent-glow: rgba(224, 172, 62, 0.35);
  --accent-subtle: rgba(224, 172, 62, 0.08);

  /* Text Hierarchy */
  --text-primary: #f0ede8;
  --text-secondary: #9a9590;
  --text-muted: #5e5a55;
  --text-faint: #3a3835;

  /* Status Colors */
  --status-success: #34d399;
  --status-success-bg: rgba(52, 211, 153, 0.12);
  --status-warning: #fbbf24;
  --status-warning-bg: rgba(251, 191, 36, 0.12);
  --status-error: #f87171;
  --status-error-bg: rgba(248, 113, 113, 0.12);
  --status-info: #60a5fa;
  --status-info-bg: rgba(96, 165, 250, 0.12);

  /* Structural */
  --border-strong: #2a2f3a;
  --border: #1e232c;
  --border-subtle: #161a22;

  /* Typography */
  --font-display: 'Barlow Condensed', 'Impact', sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px var(--accent-glow);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Diagonal Grid Pattern Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(135deg, var(--border-subtle) 1px, transparent 1px),
    linear-gradient(225deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

/* Vignette Effect */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--bg-void) 100%);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* App Container */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ============================================
   HEADER - Command Bar
   ============================================ */
.header {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-base) 100%);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 100;
}

/* Gold accent line */
.header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-dim) 20%,
    var(--accent) 50%,
    var(--accent-dim) 80%,
    transparent 100%
  );
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.header h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.header > div {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

#user-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  background: var(--bg-surface);
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main {
  flex: 1;
  padding: var(--space-8);
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* Section Headers - Distinctive Treatment */
.main h2 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.main h2::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
}

.main h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong) 0%, transparent 100%);
}

/* ============================================
   BUTTONS - Premium Feel
   ============================================ */
.btn {
  font-family: var(--font-display);
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: var(--bg-void);
  border: 1px solid var(--accent);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 100%);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
  background: var(--bg-hover);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================
   CARDS - Layered Depth
   ============================================ */
.card {
  background: var(--bg-surface);
  border-radius: 8px;
  padding: var(--space-6);
  border: 1px solid var(--border);
  position: relative;
  box-shadow: var(--shadow-md);
}

/* Corner accents */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 8px 0 0 0;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 40px;
  background: var(--accent);
  border-radius: 8px 0 0 0;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--duration-fast) var(--ease-out-expo);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.2),
    0 0 0 3px var(--accent-subtle),
    0 0 20px var(--accent-glow);
}

.form-input::placeholder {
  color: var(--text-faint);
}

textarea.form-input {
  resize: vertical;
  min-height: 130px;
  line-height: 1.7;
}

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239a9590' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ============================================
   VOICE INPUT - Signature Element
   ============================================ */
.voice-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-5);
}

.clear-btn {
  padding: var(--space-2) var(--space-4);
}

.voice-btn {
  width: 110px;
  height: 110px;
  background: linear-gradient(145deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  border: 3px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out-expo);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow:
    var(--shadow-lg),
    inset 0 -4px 12px rgba(0,0,0,0.3),
    inset 0 4px 12px rgba(255,255,255,0.05);
}

/* Concentric rings */
.voice-btn::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2px solid var(--accent-dim);
  border-radius: 50%;
  opacity: 0.4;
}

.voice-btn::after {
  content: '';
  position: absolute;
  inset: -24px;
  border: 1px solid var(--accent-dim);
  border-radius: 50%;
  opacity: 0.2;
}

.voice-btn:hover {
  background: linear-gradient(145deg, var(--bg-hover) 0%, var(--bg-surface) 100%);
  border-color: var(--accent-bright);
  box-shadow:
    var(--shadow-lg),
    var(--shadow-glow),
    inset 0 -4px 12px rgba(0,0,0,0.3),
    inset 0 4px 12px rgba(255,255,255,0.05);
  transform: scale(1.03);
}

.voice-btn.recording {
  background: linear-gradient(145deg, var(--status-error) 0%, #dc2626 100%);
  border-color: var(--status-error);
  color: white;
  animation: pulse-record 1.2s ease-in-out infinite;
}

.voice-btn.recording::before,
.voice-btn.recording::after {
  border-color: var(--status-error);
  animation: ripple-out 2s ease-out infinite;
}

.voice-btn.recording::after {
  animation-delay: 0.5s;
}

@keyframes pulse-record {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes ripple-out {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.6); opacity: 0; }
}

#voice-status {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================
   DASHBOARD - Report Type Cards
   ============================================ */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-12);
}

.report-type-btn {
  padding: var(--space-8) var(--space-6);
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  text-align: left;
}

/* Side accent bar */
.report-type-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dim) 100%);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

/* Diagonal stripe pattern on hover */
.report-type-btn::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    var(--accent-subtle) 4px,
    var(--accent-subtle) 8px
  );
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.report-type-btn:hover {
  border-color: var(--accent-dim);
  background: linear-gradient(180deg, var(--bg-hover) 0%, var(--bg-surface) 100%);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 30px var(--accent-glow);
}

.report-type-btn:hover::before {
  transform: scaleY(1);
}

.report-type-btn:hover::after {
  opacity: 1;
}

.report-type-btn h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
  transition: color var(--duration-fast);
}

.report-type-btn:hover h3 {
  color: var(--accent);
}

.report-type-btn p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ============================================
   REPORTS LIST
   ============================================ */
.reports-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.report-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  background: var(--bg-surface);
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out-expo);
  position: relative;
}

.report-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
  transition: height var(--duration-fast) var(--ease-out-expo);
}

.report-item:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  transform: translateX(4px);
}

.report-item:hover::before {
  height: 60%;
}

.report-item-info h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.report-item-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* Status Badges */
.status-badge {
  font-family: var(--font-display);
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-badge.draft {
  background: var(--status-warning-bg);
  color: var(--status-warning);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-badge.completed {
  background: var(--status-success-bg);
  color: var(--status-success);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

/* ============================================
   EDITOR - Three Panel Layout
   ============================================ */
.editor-layout {
  display: grid;
  grid-template-columns: 280px 1fr 340px;
  gap: var(--space-4);
  height: calc(100vh - 180px);
}

.editor-panel {
  background: var(--bg-surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.panel-header {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
}

.panel-header .btn {
  padding: 0.4rem 0.8rem;
  font-size: 0.7rem;
}

.panel-header-buttons {
  display: flex;
  gap: var(--space-2);
}

/* Title Input */
.title-edit-container {
  flex: 1;
  margin-right: var(--space-4);
}

.title-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  padding: var(--space-1) 0;
  transition: border-color var(--duration-fast);
}

.title-input:hover {
  border-bottom-color: var(--border-strong);
}

.title-input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.title-input::placeholder {
  color: var(--text-faint);
}

.panel-content {
  flex: 1;
  padding: var(--space-4);
  overflow-y: auto;
}

/* Custom Scrollbar */
.panel-content::-webkit-scrollbar {
  width: 8px;
}

.panel-content::-webkit-scrollbar-track {
  background: var(--bg-input);
  border-radius: 4px;
}

.panel-content::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
  border: 2px solid var(--bg-input);
}

.panel-content::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dim);
}

/* Transcript Panel */
#editor-transcript {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

/* Format Toolbar */
.format-toolbar {
  display: flex;
  gap: 6px;
  padding: var(--space-3);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.format-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
}

.format-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-hover);
}

.format-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-void);
}

.highlight-btn {
  background: var(--status-warning);
  border-color: var(--status-warning);
  color: var(--bg-void);
}

.highlight-btn:hover {
  background: #e5a600;
  border-color: #e5a600;
}

/* Rich Editor */
.rich-editor {
  height: 100%;
  padding: var(--space-5);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.85;
  overflow-y: auto;
  outline: none;
  white-space: pre-wrap;
  border-radius: 0 0 8px 8px;
}

.rich-editor:focus {
  outline: none;
}

.rich-editor mark {
  background: var(--status-warning);
  color: var(--bg-void);
  padding: 1px 4px;
  border-radius: 3px;
}

/* ============================================
   LEGAL ASSISTANT PANEL
   ============================================ */
#legal-content {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.legal-item {
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  background: var(--bg-input);
  border-radius: 6px;
  border-left: 4px solid var(--status-success);
  position: relative;
}

.legal-item.clarification {
  border-left-color: var(--status-warning);
}

.legal-item.reference {
  border-left-color: var(--status-info);
}

.legal-item-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.legal-item-content {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

#legal-content h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  margin-top: var(--space-4);
}

/* Charges Section */
.charges-section {
  padding: var(--space-4);
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.charges-header {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.charges-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.charge-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-input);
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--duration-fast);
  border: 1px solid transparent;
}

.charge-item:hover {
  background: var(--bg-surface);
  border-color: var(--border);
}

.charge-item input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

.charge-item-info {
  flex: 1;
}

.charge-item-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.charge-item-statute {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.charge-item-level {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Element Analysis */
.element-analysis {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.element-charge-header {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.element-item {
  padding: var(--space-3);
  margin-bottom: var(--space-2);
  background: var(--bg-input);
  border-radius: 6px;
  border-left: 4px solid var(--border);
}

.element-item.met { border-left-color: var(--status-success); }
.element-item.weak { border-left-color: var(--status-warning); }
.element-item.missing { border-left-color: var(--status-error); }

.element-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.element-status.met { color: var(--status-success); }
.element-status.weak { color: var(--status-warning); }
.element-status.missing { color: var(--status-error); }

.element-evidence {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 6px;
}

.element-suggestion {
  font-size: 0.85rem;
  color: var(--text-primary);
  background: var(--accent-subtle);
  padding: var(--space-2) var(--space-3);
  border-radius: 4px;
  margin-top: 6px;
  border-left: 2px solid var(--accent-dim);
}

.analysis-summary {
  margin-top: var(--space-5);
  padding: var(--space-4);
  background: var(--bg-input);
  border-radius: 6px;
  font-size: 0.9rem;
}

.analysis-summary.ready { border-left: 4px solid var(--status-success); }
.analysis-summary.needs_work { border-left: 4px solid var(--status-warning); }
.analysis-summary.insufficient { border-left: 4px solid var(--status-error); }

/* ============================================
   AUTH PAGES - Distinctive Login
   ============================================ */
.auth-container {
  max-width: 440px;
  margin: 0 auto;
  padding: var(--space-6);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-form {
  width: 100%;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  padding: var(--space-10);
  border-radius: 12px;
  border: 1px solid var(--border);
  position: relative;
  box-shadow: var(--shadow-lg);
}

/* Decorative top accent */
.auth-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dim), var(--accent));
  border-radius: 12px 12px 0 0;
}

/* Corner brackets */
.auth-form::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  pointer-events: none;
}

.auth-logo {
  display: block;
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-6);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-glow);
}

.auth-form h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: var(--space-8);
  color: var(--text-primary);
  position: relative;
}

.auth-form h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.auth-link {
  text-align: center;
  margin-top: var(--space-6);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auth-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--duration-fast);
  border-bottom: 1px solid transparent;
}

.auth-link a:hover {
  color: var(--accent-bright);
  border-bottom-color: var(--accent-bright);
}

/* ============================================
   SETTINGS
   ============================================ */
#settings-view > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
}

#settings-view h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0;
}

#settings-view h2::before,
#settings-view h2::after {
  display: none;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: var(--space-6);
}

.settings-grid .card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.settings-grid .card > p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
  line-height: 1.55;
}

.settings-grid h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.settings-list {
  max-height: 220px;
  overflow-y: auto;
}

.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  background: var(--bg-input);
  border-radius: 6px;
  margin-bottom: var(--space-3);
  border: 1px solid var(--border);
  transition: border-color var(--duration-fast);
}

.settings-item:hover {
  border-color: var(--border-strong);
}

.settings-item-info {
  flex: 1;
  overflow: hidden;
}

.settings-item-info h5 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.settings-item-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-delete {
  background: transparent;
  border: 1px solid var(--status-error);
  color: var(--status-error);
}

.btn-delete:hover {
  background: var(--status-error);
  color: white;
}

.settings-item .btn-delete {
  padding: 0.35rem 0.7rem;
  font-size: 0.7rem;
  margin-left: var(--space-3);
  flex-shrink: 0;
}

/* ============================================
   INPUT VIEW
   ============================================ */
#input-view .card {
  max-width: 720px;
  margin: 0 auto;
}

#input-view h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
}

#input-view h2::before,
#input-view h2::after {
  display: none;
}

/* Follow-up Questions */
#followup-questions .card {
  background: var(--bg-input);
  border-color: var(--status-warning);
}

#followup-questions .card::before {
  background: var(--status-warning);
}

#followup-questions .card::after {
  background: var(--status-warning);
}

#followup-questions h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--status-warning);
}

#followup-questions ul {
  margin-left: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

#followup-questions ul li {
  margin-bottom: var(--space-2);
  line-height: 1.5;
}

/* ============================================
   UTILITIES
   ============================================ */
.hidden {
  display: none !important;
}

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

.text-muted {
  color: var(--text-muted);
}

.mt-1 { margin-top: var(--space-2); }
.mt-2 { margin-top: var(--space-4); }
.mb-1 { margin-bottom: var(--space-2); }
.mb-2 { margin-bottom: var(--space-4); }

/* ============================================
   SUBSCRIPTION BANNER
   ============================================ */
.subscription-banner {
  background: linear-gradient(90deg, var(--bg-elevated) 0%, var(--bg-surface) 50%, var(--bg-elevated) 100%);
  border-bottom: 1px solid var(--accent-dim);
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  position: relative;
  z-index: 99;
}

.subscription-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-dim) 30%, var(--accent) 50%, var(--accent-dim) 70%, transparent 100%);
}

.subscription-banner.warning {
  color: var(--status-warning);
  border-bottom-color: rgba(251, 191, 36, 0.3);
}

.subscription-banner.warning::before {
  background: linear-gradient(90deg, transparent 0%, rgba(251, 191, 36, 0.3) 30%, var(--status-warning) 50%, rgba(251, 191, 36, 0.3) 70%, transparent 100%);
}

.subscription-banner.error {
  color: var(--status-error);
  border-bottom-color: rgba(248, 113, 113, 0.3);
}

.subscription-banner.error::before {
  background: linear-gradient(90deg, transparent 0%, rgba(248, 113, 113, 0.3) 30%, var(--status-error) 50%, rgba(248, 113, 113, 0.3) 70%, transparent 100%);
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
}

/* ============================================
   PAYWALL MODAL
   ============================================ */
.paywall-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 8, 16, 0.85);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s var(--ease-out-expo);
}

.paywall-modal {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-10);
  max-width: 440px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 60px var(--accent-glow);
  animation: fadeSlideIn 0.4s var(--ease-out-expo);
}

.paywall-modal-tiered {
  max-width: 700px;
}

.paywall-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dim), var(--accent));
  border-radius: 12px 12px 0 0;
}

.paywall-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-2);
  line-height: 1;
  transition: color var(--duration-fast);
}

.paywall-close:hover {
  color: var(--text-primary);
}

.paywall-icon {
  color: var(--accent);
  margin-bottom: var(--space-5);
}

.paywall-modal h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.paywall-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

.paywall-features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-6);
}

.paywall-features li {
  padding: var(--space-2) 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  position: relative;
  padding-left: var(--space-6);
}

.paywall-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.paywall-price {
  margin-bottom: var(--space-5);
}

.paywall-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.paywall-period {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.paywall-cta {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  margin-bottom: var(--space-4);
}

.paywall-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Pro Badge */
.pro-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: var(--bg-void);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 0.25rem;
}

/* ============================================
   PAYWALL — Two-Tier Layout
   ============================================ */
.paywall-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.paywall-tier {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-6);
  text-align: center;
  position: relative;
  transition: border-color var(--duration-normal);
}

.paywall-tier:hover {
  border-color: var(--border-strong);
}

.paywall-tier-featured {
  border-color: var(--accent-dim);
  background: linear-gradient(180deg, rgba(224, 172, 62, 0.06) 0%, var(--bg-input) 100%);
}

.paywall-tier-featured:hover {
  border-color: var(--accent);
}

.paywall-tier-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--bg-void);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
}

.paywall-tier-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.paywall-tier .paywall-price {
  margin-bottom: var(--space-4);
}

.paywall-tier .paywall-features {
  margin-bottom: var(--space-5);
  text-align: left;
}

.paywall-tier-btn {
  width: 100%;
  padding: 0.8rem;
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .paywall-tiers {
    grid-template-columns: 1fr;
  }

  .paywall-modal-tiered {
    max-width: 440px;
  }
}

/* ============================================
   COURT PREP — Mock Cross-Examination
   ============================================ */
.court-prep-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-4);
  height: calc(100vh - 180px);
}

.court-prep-panel {
  background: var(--bg-surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.court-prep-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
}

.court-prep-report-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

/* Vulnerability Assessment — Collapsible */
.court-prep-vuln-section {
  border-bottom: 1px solid var(--border);
}

.court-prep-vuln-toggle {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border: none;
  color: var(--status-warning);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--duration-fast);
}

.court-prep-vuln-toggle:hover {
  background: var(--bg-hover);
}

.court-prep-vuln-toggle svg {
  transition: transform var(--duration-fast);
}

.court-prep-vuln-toggle.collapsed svg {
  transform: rotate(-90deg);
}

.court-prep-vuln-content {
  padding: var(--space-4);
  background: var(--bg-input);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-wrap;
  max-height: 250px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}

.court-prep-vuln-content.collapsed {
  display: none;
}

/* Chat Messages */
.court-prep-messages {
  flex: 1;
  padding: var(--space-4);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.court-prep-messages::-webkit-scrollbar {
  width: 8px;
}

.court-prep-messages::-webkit-scrollbar-track {
  background: var(--bg-input);
  border-radius: 4px;
}

.court-prep-messages::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
  border: 2px solid var(--bg-input);
}

.court-prep-messages::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dim);
}

.court-prep-msg {
  max-width: 85%;
  padding: var(--space-4);
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.6;
  animation: fadeSlideIn 0.3s var(--ease-out-expo) both;
}

.court-prep-msg-attorney {
  align-self: flex-start;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-left: 3px solid var(--status-error);
  color: var(--text-primary);
}

.court-prep-msg-officer {
  align-self: flex-end;
  background: var(--accent-subtle);
  border: 1px solid rgba(224, 172, 62, 0.2);
  border-right: 3px solid var(--accent-dim);
  color: var(--text-primary);
}

.court-prep-msg-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.court-prep-msg-attorney .court-prep-msg-label {
  color: var(--status-error);
}

.court-prep-msg-officer .court-prep-msg-label {
  color: var(--accent);
}

.court-prep-msg-time {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-faint);
  margin-top: var(--space-2);
}

/* Input Area */
.court-prep-input-area {
  padding: var(--space-4);
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.court-prep-input-row {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.court-prep-input-row .form-input {
  flex: 1;
}

.court-prep-voice-btn {
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
  flex-shrink: 0;
}

.court-prep-voice-btn:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}

.court-prep-voice-btn.recording {
  background: var(--status-error);
  border-color: var(--status-error);
  color: white;
  animation: pulse-record 1.2s ease-in-out infinite;
}

.court-prep-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
}

/* Status Badge */
.court-prep-status-badge {
  font-family: var(--font-display);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.court-prep-status-badge.analyzing {
  background: var(--status-info-bg);
  color: var(--status-info);
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.court-prep-status-badge.active {
  background: var(--status-success-bg);
  color: var(--status-success);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.court-prep-status-badge.completed {
  background: var(--status-warning-bg);
  color: var(--status-warning);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Loading State */
.court-prep-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-10);
  color: var(--text-muted);
  gap: var(--space-4);
}

.court-prep-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.court-prep-loading p {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Debrief */
.court-prep-debrief {
  padding: var(--space-5);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  margin-top: var(--space-4);
}

.court-prep-debrief-header {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.court-prep-debrief-content {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

/* Dashboard Court Prep Button */
.court-prep-icon-btn {
  width: 32px;
  height: 32px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
  flex-shrink: 0;
}

.court-prep-icon-btn:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
  background: var(--bg-hover);
}

.court-prep-icon-btn svg {
  width: 16px;
  height: 16px;
}

/* Dashboard Delete Button */
.delete-report-btn {
  width: 32px;
  height: 32px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
  flex-shrink: 0;
}

.delete-report-btn:hover {
  border-color: var(--status-error);
  color: var(--status-error);
  background: var(--status-error-bg);
}

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

/* ============================================
   QUICK COURT PREP — Dashboard Card
   ============================================ */
.quick-court-prep-card {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.quick-court-prep-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--status-error) 0%, var(--accent) 100%);
}

.quick-court-prep-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 30px var(--accent-glow);
}

.quick-court-prep-card.expanded {
  cursor: default;
  transform: none;
  box-shadow: var(--shadow-md);
}

.quick-court-prep-card.expanded:hover {
  transform: none;
}

.quick-court-prep-header {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.quick-court-prep-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: var(--accent);
}

.quick-court-prep-icon svg {
  width: 100%;
  height: 100%;
}

.quick-court-prep-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.quick-court-prep-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

.quick-court-prep-form {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
  .editor-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .editor-panel {
    min-height: 380px;
  }

  .court-prep-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .court-prep-panel {
    min-height: 400px;
  }

  .court-prep-messages {
    min-height: 300px;
  }
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .header {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .header > div {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .main {
    padding: var(--space-4);
  }

  .card {
    padding: var(--space-5);
  }

  .auth-form {
    padding: var(--space-6);
  }

  .btn {
    padding: 0.6rem 1.1rem;
  }

  .voice-btn {
    width: 90px;
    height: 90px;
  }

  .report-type-btn {
    padding: var(--space-5);
  }

  .report-type-btn h3 {
    font-size: 1.1rem;
  }
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.card,
.report-item,
.report-type-btn,
.settings-item,
.auth-form {
  animation: fadeSlideIn 0.4s var(--ease-out-expo) both;
}

/* Staggered animations */
.reports-list .report-item:nth-child(1) { animation-delay: 0.05s; }
.reports-list .report-item:nth-child(2) { animation-delay: 0.1s; }
.reports-list .report-item:nth-child(3) { animation-delay: 0.15s; }
.reports-list .report-item:nth-child(4) { animation-delay: 0.2s; }
.reports-list .report-item:nth-child(5) { animation-delay: 0.25s; }

.dashboard-grid .report-type-btn:nth-child(1) { animation-delay: 0.1s; }
.dashboard-grid .report-type-btn:nth-child(2) { animation-delay: 0.18s; }
.dashboard-grid .report-type-btn:nth-child(3) { animation-delay: 0.26s; }

.settings-grid .card:nth-child(1) { animation-delay: 0.1s; }
.settings-grid .card:nth-child(2) { animation-delay: 0.18s; }
.settings-grid .card:nth-child(3) { animation-delay: 0.26s; }

/* Focus states */
.btn:focus-visible,
.form-input:focus-visible,
.report-item:focus-visible,
.report-type-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============================================
   LOADING STATES
   ============================================ */
.btn.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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