/* ══════════════════════════════════════════════════════════
   TerraPrep Design System — terraprep-theme.css
   ══════════════════════════════════════════════════════════ */

:root {
  --bg-base: #0a0f1e;
  --bg-surface: #0f172a;
  --bg-elevated: #1e293b;
  --bg-input: #334155;
  --brand: #3b82f6;
  --brand-bright: #60a5fa;
  --brand-glow: rgba(59,130,246,0.15);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
}

/* ── Topo Pattern SVG (shared) ── */
.topo-pattern-bg::before,
.topo-pattern-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400'%3E%3Cpath d='M0,200 Q75,150 150,200 Q225,250 300,200 Q375,150 450,200 Q525,250 600,200' fill='none' stroke='%233B82F6' stroke-width='1' opacity='0.3'/%3E%3Cpath d='M0,160 Q75,110 150,160 Q225,210 300,160 Q375,110 450,160 Q525,210 600,160' fill='none' stroke='%233B82F6' stroke-width='1' opacity='0.3'/%3E%3Cpath d='M0,240 Q75,190 150,240 Q225,290 300,240 Q375,190 450,240 Q525,290 600,240' fill='none' stroke='%233B82F6' stroke-width='1' opacity='0.3'/%3E%3Cpath d='M0,120 Q75,70 150,120 Q225,170 300,120 Q375,70 450,120 Q525,170 600,120' fill='none' stroke='%233B82F6' stroke-width='1' opacity='0.3'/%3E%3Cpath d='M0,280 Q75,230 150,280 Q225,330 300,280 Q375,230 450,280 Q525,330 600,280' fill='none' stroke='%233B82F6' stroke-width='1' opacity='0.3'/%3E%3C/svg%3E");
  background-size: 600px 400px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
}

/* ── Buttons ── */
.btn-primary {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  transition: all 0.2s ease;
}
.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(59,130,246,0.4);
  color: #3b82f6;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background: rgba(59,130,246,0.1);
  border-color: #3b82f6;
}

/* ── Status Badges ── */
.badge-status {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-status.active {
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  color: #10b981;
}
.badge-status.upcoming {
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  color: #f59e0b;
}
.badge-status.billed {
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.3);
  color: #3b82f6;
}

/* ── Nav Role Badge ── */
.badge-vp {
  background: rgba(59,130,246,0.15);
  color: #3b82f6;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(59,130,246,0.3);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ── Nav Logout Button ── */
.btn-logout-nav {
  background: transparent;
  border: 1px solid rgba(59,130,246,0.3);
  color: #94a3b8;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  text-decoration: none;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.btn-logout-nav:hover {
  border-color: #3b82f6;
  color: #f8fafc;
}

/* ── Card Base ── */
.tp-card {
  background: var(--bg-surface);
  border: 1px solid rgba(59,130,246,0.12);
  border-radius: 12px;
  border-top: 3px solid #3b82f6;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  padding: 24px;
  transition: all 0.2s ease;
}
.tp-card:hover {
  border-color: rgba(59,130,246,0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(59,130,246,0.12);
}
