/* ═══════════════════════════════════════
   qrit — styles.css
   Brand Palette: Fresh, friendly, trustworthy, stress-free
   ═══════════════════════════════════════ */
:root {
  /* Brand Palette */
  --bg:         #F0FDF4; /* Soft background green */
  --bg-card:    #FFFFFF; /* Pure white */
  --bg-surface: #F8FAFC; /* Light gray-blue surface */
  --primary:    #166534; /* Primary deep green */
  --primary-action: #16A34A; /* Primary action green */
  --primary-hover: #15803d; /* Hover for action green */
  --primary-light: #86EFAC; /* Light supportive green */
  --border:     #D1FAE5; /* Subtle border */
  
  /* Text */
  --text:       #0F172A; /* Main text / dark neutral */
  --text-secondary: #475569; /* Secondary text */
  --text-disabled: #94A3B8; /* Disabled text */

  /* Semantic States (Calm) */
  --error-bg:   #FEF2F2;
  --error-border: #FECACA;
  --error-text: #B91C1C;
  --warning-bg: #FFFBEB;
  --warning-text: #B45309;

  /* Layout */
  --radius-sm:  0.5rem;
  --radius:     1rem;
  --radius-lg:  1.5rem;
  --font:       'Inter', -apple-system, sans-serif;
  --shadow-sm:  0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow:     0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
  --shadow-lg:  0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.02);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ── Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
}

/* ── Auth screen ─────────────────────────────────────────────────────────── */
.auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.auth-logo {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.auth-logo-accent { 
  color: var(--primary-action); 
}
.auth-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}
.auth-error {
  display: none;
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: var(--radius-sm);
  color: var(--error-text);
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
  line-height: 1.4;
}
.auth-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 1.2rem;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary-action);
  color: var(--bg-card);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover:not(:disabled) { 
  background: var(--primary-hover); 
  transform: translateY(-1px);
}
.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}
.btn-primary:disabled { 
  background: var(--text-disabled);
  cursor: not-allowed; 
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
}
.btn-secondary:hover:not(:disabled) {
  background: var(--border);
}

/* ── App shell ───────────────────────────────────────────────────────────── */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
}
.nav-logo-accent { color: var(--primary-action); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-user {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.nav-avatar {
  background: var(--border);
  border: none;
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav-btn {
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.nav-btn:hover { 
  color: var(--text); 
  border-color: var(--text-disabled); 
  background: var(--bg-surface);
}

/* ── Main content ────────────────────────────────────────────────────────── */
.main-content {
  padding: 2rem 1.25rem;
  max-width: 600px; /* Kept mobile-width focused */
  margin: 0 auto;
}

/* ── Placeholder card ────────────────────────────────────────────────────── */
.placeholder-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  margin: 2rem auto;
}
.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.placeholder-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.placeholder-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ── Utilities ───────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
