/* Bodacker — minimal modern stylesheet.
   Kept intentionally small for the demo; replaceable with Tailwind later. */

:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --color-muted-bg: #f1f5f9;
  --color-primary: hsl(207, 90%, 54%);
  --color-primary-dark: hsl(207, 90%, 44%);
  --color-primary-soft: rgba(45, 138, 240, 0.1);
  --color-border: #e2e8f0;
  --color-warning: #f59e0b;
  --color-danger: #dc2626;
  --color-success: #16a34a;
  --radius: 0.75rem;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.12);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > .main { flex: 1 0 auto; }
body > .footer { flex-shrink: 0; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top bar */
.topbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 0.95rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.5rem;
}
.brand-icon {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
}
.brand-name { color: var(--color-primary); }
.nav-user { color: var(--color-muted); font-size: 0.9rem; }
.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-account {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-account form { margin: 0; }
.nav-link {
  color: var(--color-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-link:hover { color: var(--color-primary); }

/* Main */
.main { padding: 0; }
.section { padding: 5rem 0; }
.section-muted { background: var(--color-muted-bg); }
.section-heading {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-heading h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}
.section-heading p {
  color: var(--color-muted);
  font-size: 1.1rem;
  margin: 0;
}
.grid-3, .grid-4 {
  display: grid;
  gap: 1.5rem;
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--color-muted-bg) 100%);
  padding: 5.5rem 0 4.5rem;
}
.hero-centered { text-align: center; }
.hero-copy {
  max-width: 760px;
  margin: 0 auto;
}
.hero-centered .cta-row { justify-content: center; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.04em;
}
.hero .lead {
  color: var(--color-muted);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  max-width: 640px;
  margin: 0 0 2rem;
}
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.text-link {
  align-items: center;
  color: var(--color-primary);
  display: inline-flex;
  font-weight: 700;
  text-decoration: none;
}
.text-link:hover { color: var(--color-primary-dark); }
.eyebrow {
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 0.85rem;
  text-transform: uppercase;
  font-size: 0.78rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn-sm {
  border-radius: 999px;
  font-size: 0.875rem;
  padding: 0.5rem 0.85rem;
}
.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-danger { background: var(--color-danger); color: white; }
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
}
.badge-primary { background: var(--color-primary-soft); color: var(--color-primary); }
.badge-success { background: #ecfdf5; color: #047857; }
.badge-warning { background: #fffbeb; color: #b45309; }

/* Forms */
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: 0.35rem; font-weight: 500; }
.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field input[type="file"],
.field input[type="password"],
.field textarea,
.field select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  font: inherit;
  color: inherit;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}
.field-errors { color: var(--color-danger); margin: 0.35rem 0 0; padding-left: 1.1rem; font-size: 0.9rem; }

/* Banners */
.banner {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.banner--success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.banner--error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.banner--info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* Cards / Tables (used by dashboard later) */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.card-hover:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-card h3,
.value-card h3 {
  font-size: 1.1rem;
  margin: 1rem 0 0.45rem;
}
.feature-card p,
.value-card p {
  color: var(--color-muted);
  margin: 0;
}
.icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}
.icon svg { width: 24px; height: 24px; }
.icon-primary { background: var(--color-primary-soft); color: var(--color-primary); }
.icon-warning { background: #fffbeb; color: var(--color-warning); }
.dashboard-preview {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.25rem;
}
.dashboard-body { padding: 1.25rem; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.stat {
  background: var(--color-muted-bg);
  border-radius: 0.75rem;
  padding: 0.85rem;
}
.stat strong { display: block; font-size: 1.4rem; line-height: 1; }
.stat span { color: var(--color-muted); font-size: 0.8rem; }
.alert-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0;
  border-top: 1px solid var(--color-border);
}
.alert-row:first-child { border-top: 0; }
.alert-row p { margin: 0; }
.alert-row small { color: var(--color-muted); }
.app-shell {
  display: grid;
  gap: 1.25rem;
  padding: 3rem 1.5rem 4rem;
}
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.app-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 0.35rem;
}
.app-header p { color: var(--color-muted); margin: 0; }
.app-panel { margin-bottom: 0; }
.panel-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}
.panel-header h2 { font-size: 1.15rem; margin: 0; }
.dropzone {
  align-items: center;
  border: 1.5px dashed rgba(45, 138, 240, 0.45);
  box-shadow: none;
  display: grid;
  justify-items: center;
  margin-bottom: 0;
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.dropzone-icon {
  align-items: center;
  background: var(--color-primary-soft);
  border-radius: 999px;
  color: var(--color-primary);
  display: inline-flex;
  height: 64px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 64px;
}
.dropzone-title {
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
}
.dropzone-hint {
  color: var(--color-muted);
  margin: 0 0 1rem;
}
.dropzone small { color: var(--color-muted); margin-top: 0.8rem; }
.dropzone--active { border-color: var(--color-primary); background: var(--color-primary-soft); }
.timeline {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.timeline-step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}
.step-number {
  color: var(--color-primary);
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.timeline-step h3 { font-size: 1.1rem; margin: 0 0 0.45rem; }
.timeline-step p { color: var(--color-muted); margin: 0; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--color-border);
}
.table th { font-weight: 600; color: var(--color-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.table--data td.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* App navigation tabs */
.app-nav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0;
}
.app-nav .container {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
}
.nav-tab {
  color: var(--color-muted);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.85rem 1rem;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav-tab:hover { color: var(--color-primary); }
.nav-tab--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Toolbar + inline forms */
.toolbar {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.toolbar-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.toolbar-search input[type="search"],
.toolbar-search input[type="text"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
}
.inline-form {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.inline-form .field { margin-bottom: 0; flex: 1 1 160px; }
.inline-form .field input { width: 100%; }

/* Empty state + pagination */
.empty-state {
  padding: 2rem 1rem;
  text-align: center;
}
.empty-state h3 { margin: 0 0 0.5rem; }
.empty-state p { color: var(--color-muted); margin: 0 0 1rem; }
.pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.25rem;
}
.pagination-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}
.pagination-info { color: var(--color-muted); font-size: 0.9rem; }
.stat-hint { color: var(--color-muted); display: block; font-size: 0.75rem; margin-top: 0.25rem; }
.text-muted { color: var(--color-muted); }
.btn-ghost-danger {
  background: transparent;
  border: none;
  color: var(--color-danger);
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  text-decoration: underline;
}
.btn-ghost-danger:hover { color: #991b1b; }
.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
.list-meta {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}
.panel-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }

/* Footer */
.footer {
  padding: 1.75rem 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.9rem;
  background: var(--color-surface);
}
.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.auth-page {
  align-items: center;
  display: grid;
  justify-content: center;
  min-height: calc(100vh - 174px);
  padding: 2rem 1.5rem;
}
.auth-card {
  margin: 0;
  padding: 2rem;
  width: min(100%, 420px);
  text-align: left;
}
.auth-mark {
  color: var(--color-primary);
  display: block;
  margin: 0 auto 1rem;
}
.auth-card h1 { margin: 0 0 0.5rem; font-size: 1.7rem; text-align: center; }
.auth-card p { color: var(--color-muted); margin: 0 0 1.25rem; }
.auth-card > p { text-align: center; }
.email-pill {
  background: var(--color-muted-bg);
  border-radius: 999px;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 1rem;
  padding: 0.55rem 0.75rem;
  text-align: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .nav-link { display: none; }
  .timeline { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid-3, .grid-4, .stat-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 0; }
  .section { padding: 3.5rem 0; }
  .footer .container { align-items: flex-start; flex-direction: column; }
  .app-header { align-items: flex-start; flex-direction: column; }
  .brand { font-size: 1.25rem; }
  .nav-user { display: none; }
}
