/* === RepReview AI — App Stylesheet === */
/* Design tokens from landing page */
:root {
  --nav-bg: #0a1628;
  --bg: #0f1c2e;
  --bg-alt: #162540;
  --fg: #f0f4f8;
  --fg-muted: #8aa3b8;
  --accent: #f5a623;
  --accent-dark: #c8860a;
  --border: rgba(240, 244, 248, 0.08);
  --border-strong: rgba(240, 244, 248, 0.15);
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 22, 40, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 56px;
  display: flex; align-items: center; gap: 1rem;
}
.nav-logo { font-family: var(--font-display); font-size: 1.125rem; letter-spacing: -0.01em; }
.nav-tagline { font-size: 0.8125rem; color: var(--fg-muted); margin-left: auto; }
.nav-links { display: flex; gap: 1rem; align-items: center; }
.nav-links a { color: var(--fg-muted); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--fg); }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1.25rem; border-radius: var(--radius); font-weight: 500; font-size: 0.875rem; cursor: pointer; border: none; text-decoration: none; transition: all 0.2s; }
.btn-primary { background: var(--accent); color: #0a1628; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: transparent; color: var(--fg); border: 1px solid var(--border-strong); }
.btn-secondary:hover { background: var(--card-hover); }
.btn-sm { padding: 0.35rem 0.875rem; font-size: 0.8125rem; }

/* Container */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* Hero */
.hero { padding: 6rem 2rem 4rem; text-align: center; }
.hero-headline { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1rem; }
.hero-headline em { font-style: italic; color: var(--accent); }
.hero-sub { font-size: 1.0625rem; color: var(--fg-muted); max-width: 520px; margin: 0 auto 2rem; }

/* Dashboard layout */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; padding: 5rem 2rem 3rem; max-width: 1100px; margin: 0 auto; }
.sidebar { position: fixed; top: 56px; left: 0; width: 240px; height: calc(100vh - 56px); overflow-y: auto; padding: 1.5rem; border-right: 1px solid var(--border); background: rgba(10, 22, 40, 0.5); }
.sidebar-section { margin-bottom: 2rem; }
.sidebar-label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-muted); margin-bottom: 0.75rem; }
.sidebar-link { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; border-radius: var(--radius); color: var(--fg-muted); text-decoration: none; font-size: 0.875rem; transition: all 0.15s; }
.sidebar-link:hover, .sidebar-link.active { background: var(--card-hover); color: var(--fg); }
.sidebar-link .badge { margin-left: auto; background: var(--accent); color: #0a1628; font-size: 0.6875rem; padding: 0.1rem 0.4rem; border-radius: 99px; font-weight: 600; }
.main-content { flex: 1; min-width: 0; }

/* Page header */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.page-title { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.01em; }
.page-subtitle { color: var(--fg-muted); font-size: 0.875rem; margin-top: 0.25rem; }

/* Stats row */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.stat-value { font-size: 1.75rem; font-weight: 600; color: var(--fg); }
.stat-label { font-size: 0.8125rem; color: var(--fg-muted); margin-top: 0.25rem; }

/* Review cards */
.review-list { display: flex; flex-direction: column; gap: 1rem; }
.review-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; transition: border-color 0.2s; }
.review-card:hover { border-color: var(--border-strong); }
.review-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.reviewer-info { display: flex; align-items: center; gap: 0.75rem; }
.reviewer-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1rem; color: var(--fg-muted); flex-shrink: 0; }
.reviewer-name { font-weight: 500; font-size: 0.9375rem; }
.review-meta { font-size: 0.75rem; color: var(--fg-muted); }
.rating { color: #f5a623; }
.stars { letter-spacing: -0.05em; }
.review-content { font-size: 0.9375rem; color: var(--fg-muted); line-height: 1.55; margin-bottom: 1rem; }
.review-status { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; padding: 0.25rem 0.625rem; border-radius: 99px; font-weight: 500; }
.status-pending { background: rgba(240, 244, 248, 0.08); color: var(--fg-muted); }
.status-drafted { background: rgba(245, 166, 35, 0.15); color: var(--accent); }
.status-approved { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.status-sent { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.draft-response { background: rgba(245, 166, 35, 0.08); border: 1px solid rgba(245, 166, 35, 0.2); border-radius: var(--radius); padding: 0.875rem; margin: 0.75rem 0; font-size: 0.9rem; color: var(--fg); }
.draft-response-label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 0.375rem; }
.review-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.875rem; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }
.form-input, .form-textarea { width: 100%; background: var(--bg-alt); border: 1px solid var(--border-strong); border-radius: var(--radius); color: var(--fg); font-family: var(--font-body); font-size: 0.9375rem; padding: 0.625rem 0.875rem; transition: border-color 0.2s; }
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 0.75rem; color: var(--fg-muted); margin-top: 0.375rem; }

/* Cards */
.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.card-title { font-weight: 600; font-size: 1rem; margin-bottom: 1rem; }

/* Alerts */
.alert { padding: 0.875rem 1rem; border-radius: var(--radius); font-size: 0.875rem; margin-bottom: 1rem; }
.alert-success { background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.2); color: #22c55e; }
.alert-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); color: #ef4444; }

/* Divider */
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* Empty state */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--fg-muted); }
.empty-state-icon { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.4; }
.empty-state-title { font-size: 1.125rem; font-weight: 500; color: var(--fg); margin-bottom: 0.5rem; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 2rem; text-align: center; font-size: 0.8125rem; color: var(--fg-muted); margin-top: 4rem; }

/* Login page */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.login-box { width: 100%; max-width: 400px; text-align: center; }
.login-box h1 { font-family: var(--font-display); font-size: 1.75rem; margin-bottom: 0.5rem; }
.login-box p { color: var(--fg-muted); margin-bottom: 2rem; }
.login-box .form-group { text-align: left; }

/* Loading spinner */
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeIn 0.3s ease-out; }