/* ══════════════════════════════════════════════════════════════
   DeepEd — White Minimalist Global Design System
   ══════════════════════════════════════════════════════════════ */

:root {
  /* Blue Theme Palette */
  --bg-color: #1e40af;
  --card-bg: rgba(255, 255, 255, 0.12);
  --card-border: rgba(255, 255, 255, 0.2);

  /* Text Colors — light for dark blue background */
  --text-main: #ffffff;
  --text-article: #e2e8f0;
  --text-muted: #93c5fd;

  /* Input & Accents */
  --input-bg: rgba(255, 255, 255, 0.12);
  --input-border: rgba(255, 255, 255, 0.3);
  --accent: #d4af37;

  /* System States */
  --success: #34d399;
  --error-bg: rgba(239, 68, 68, 0.2);
  --error-text: #fca5a5;
  --error-border: rgba(252, 165, 165, 0.4);
  --info-bg: rgba(255, 255, 255, 0.08);
  --info-text: #bfdbfe;
  --info-border: rgba(255, 255, 255, 0.15);
  --warning-bg: rgba(245, 158, 11, 0.2);
  --warning-text: #fcd34d;
  --warning-border: rgba(252, 211, 77, 0.4);

  /* Topics Status Colors */
  --status-done-bg: rgba(52, 211, 153, 0.2);
  --status-done-text: #6ee7b7;
  --status-reading-bg: rgba(147, 197, 253, 0.2);
  --status-reading-text: #93c5fd;
  --status-quiz-bg: rgba(252, 211, 77, 0.2);
  --status-quiz-text: #fcd34d;
  --status-new-bg: rgba(255, 255, 255, 0.1);
  --status-new-text: #e2e8f0;
}

/* ── Shared Navbar ─────────────────────────────────────────── */
.navbar {
  padding: 1.25rem 2rem;
  background: rgba(30, 58, 138, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.navbar-brand img {
  height: 36px;
  width: auto;
  display: block;
}

.navbar-brand span {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-main);
}

.navbar-brand em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.user-greeting {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.btn-logout {
  color: #fca5a5;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  border-radius: 12px;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(252, 165, 165, 0.4);
}

.btn-logout:hover {
  background: rgba(252, 165, 165, 0.15);
  color: #fca5a5;
  border-color: rgba(252, 165, 165, 0.6);
  transform: translateY(-1px);
}

.btn-back {
  color: #e2e8f0;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  border-radius: 12px;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 600px) {
  .navbar { padding: 0.8rem 1.2rem; }
  .navbar-brand img { height: 28px; }
  .user-greeting { display: none; }
  .btn-logout, .btn-back { padding: 0.5rem 1rem; font-size: 0.85rem; }
}

/* Global Reset & Base Typography */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: "Outfit", sans-serif;
  -webkit-font-smoothing: antialiased;
  /* Very subtle premium dot grid background */
  background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 0);
  background-size: 32px 32px;
}
