/* getclassroom — Draper Brand System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-dark: #1a1a2e;
  --bg-mid: #16213e;
  --primary: #0f3460;
  --accent: #e94560;
  --text: #1a1a2e;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --surface: #ffffff;
  --surface-alt: #f8f9fb;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--surface-alt); color: var(--text); line-height: 1.6; }
.view { display: none; }
.view.active { display: block; }

/* ── Buttons ── */
.btn { padding: 12px 28px; border: none; border-radius: 8px; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 600; transition: all 0.2s; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #d63851; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(233,69,96,0.3); }
.btn-secondary { background: transparent; color: var(--surface); border: 2px solid rgba(255,255,255,0.3); }
.btn-secondary:hover { border-color: white; background: rgba(255,255,255,0.1); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary); color: white; }

/* ── Landing ── */
.landing-header {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-mid) 50%, var(--primary) 100%);
  color: white; padding: 40px 20px;
}
.landing-header .container { max-width: 640px; }
.landing-header h1 { font-size: 3.2rem; font-weight: 700; margin-bottom: 16px; letter-spacing: -1px; }
.landing-header .tagline { font-size: 1.15rem; color: rgba(255,255,255,0.75); margin-bottom: 40px; line-height: 1.7; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; margin-bottom: 24px; }
.price { font-size: 0.85rem; color: rgba(255,255,255,0.4); }

/* ── Auth Cards ── */
.auth-card {
  max-width: 400px; margin: 80px auto; padding: 40px; background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.auth-card h2 { margin-bottom: 24px; color: var(--text); font-size: 1.5rem; }
.auth-card input {
  width: 100%; padding: 14px 16px; margin-bottom: 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 15px; font-family: inherit; transition: border-color 0.2s;
}
.auth-card input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,52,96,0.1); }
.auth-card .btn { width: 100%; padding: 14px; font-size: 16px; }
.auth-card p { text-align: center; margin-top: 16px; color: var(--text-light); font-size: 14px; }
.auth-card a { color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-card a:hover { text-decoration: underline; }

/* ── Onboarding ── */
.onboard-card {
  max-width: 560px; margin: 60px auto; padding: 40px; background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.onboard-card h2 { color: var(--text); font-size: 1.5rem; margin-bottom: 6px; }
.onboard-card > p { color: var(--text-light); margin-bottom: 28px; font-size: 15px; }
.onboard-card label { display: block; font-weight: 600; font-size: 14px; margin: 18px 0 6px; color: var(--text); }
.onboard-card input, .onboard-card select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 15px; font-family: inherit; background: var(--surface);
}
.onboard-card input:focus, .onboard-card select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,52,96,0.1); }
.onboard-step { display: none; }
.onboard-step.active { display: block; }

/* Plan Cards */
.plan-cards { display: flex; gap: 20px; margin-top: 8px; }
.plan-card {
  flex: 1; border: 2px solid var(--border); border-radius: var(--radius); padding: 28px; text-align: center;
  transition: all 0.2s;
}
.plan-card.featured { border-color: var(--accent); box-shadow: 0 4px 20px rgba(233,69,96,0.12); }
.plan-card h3 { color: var(--text); font-size: 1.1rem; margin-bottom: 8px; }
.plan-price { font-size: 2.2rem; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.plan-price span { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }
.plan-card ul { list-style: none; margin-bottom: 24px; }
.plan-card li { padding: 5px 0; color: var(--text-light); font-size: 14px; }
.plan-card .btn { width: 100%; }

/* ── Dashboard ── */
#dashboard.active { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; background: var(--surface); border-right: 1px solid var(--border);
  padding: 20px 0; display: flex; flex-direction: column;
}
.sidebar-header { padding: 0 20px 20px; border-bottom: 1px solid var(--border); }
.sidebar-header h2 { font-size: 1.1rem; color: var(--primary); font-weight: 700; }
.nav-items { flex: 1; padding: 8px 0; }
.nav-item {
  display: block; padding: 10px 20px; color: var(--text-light); text-decoration: none;
  font-size: 14px; font-weight: 500; border-left: 3px solid transparent; transition: all 0.15s;
}
.nav-item:hover, .nav-item.active { background: rgba(15,52,96,0.04); border-left-color: var(--primary); color: var(--primary); }
.sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--border); }
.sidebar-footer a { color: var(--text-muted); text-decoration: none; font-size: 13px; }
.main-content { flex: 1; padding: 28px; overflow-y: auto; background: var(--surface-alt); }

/* ── Cards & Tables ── */
.card {
  background: var(--surface); border-radius: var(--radius); padding: 24px; margin-bottom: 16px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.card h3 { margin-bottom: 16px; color: var(--text); font-size: 1.1rem; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
th { font-weight: 600; color: var(--text-light); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
td button { background: none; border: 1px solid var(--border); border-radius: 6px; padding: 4px 12px; cursor: pointer; color: var(--text-light); font-size: 13px; }
td button:hover { border-color: var(--accent); color: var(--accent); }

/* ── Modal ── */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 100;
}
.modal {
  background: var(--surface); border-radius: var(--radius); padding: 32px;
  width: 90%; max-width: 480px; box-shadow: var(--shadow-lg);
}
.modal h3 { margin-bottom: 20px; color: var(--text); }
.modal label { display: block; font-weight: 600; font-size: 13px; margin: 12px 0 4px; color: var(--text-light); }
.modal input, .modal select, .modal textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit;
}
.modal input:focus, .modal select:focus, .modal textarea:focus { outline: none; border-color: var(--primary); }
.modal .btn { margin-top: 16px; margin-right: 8px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .landing-header h1 { font-size: 2.2rem; }
  #dashboard.active { flex-direction: column; }
  .sidebar { width: 100%; flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .nav-items { display: flex; }
  .nav-item { border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; padding: 10px 16px; }
  .sidebar-header, .sidebar-footer { display: none; }
  .plan-cards { flex-direction: column; }
  .onboard-card, .auth-card { margin: 20px; }
}
