:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --accent: #8a63d2;
  --text: #1a202c;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --error: #dc2626;
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 8px 24px rgba(15, 23, 42, 0.12);
  --radius: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ---------- Login page ---------- */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #eff6ff 0%, #f7f9fc 60%);
}

.login-card {
  background: var(--surface);
  padding: 48px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.login-card h1 {
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--primary);
}

.login-card .subtitle {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 14px;
}

.login-card .hint {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 32px;
  font-style: italic;
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.login-card label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.login-card input {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.login-card input:focus {
  outline: none;
  border-color: var(--primary);
}

.login-card button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}

.login-card button:hover {
  background: var(--primary-hover);
}

.login-card .error {
  color: var(--error);
  font-size: 14px;
  text-align: center;
  margin-top: 8px;
}

.login-card footer {
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 12px;
}

/* ---------- Dashboard ---------- */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar h1 {
  font-size: 20px;
  color: var(--primary);
}

.logout {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

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

.dashboard {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}

.section {
  margin-bottom: 48px;
}

.section h2 {
  font-size: 22px;
  margin-bottom: 6px;
  color: var(--text);
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 14px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: block;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.card.download:hover {
  border-color: var(--accent);
}

.card-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.card-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
