:root {
  font-family: "Inter", "Geist", system-ui, -apple-system, sans-serif;
  color: #0f172a;
  background-color: #f4f5fb;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, #e0f2fe, transparent 45%),
    radial-gradient(circle at bottom right, #fef9c3, transparent 40%),
    #f4f5fb;
  color: #0f172a;
}

.app-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}

header {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
}

.nav-links {
  display: flex;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.hero {
  margin-bottom: 40px;
}

.hero h1 {
  font-size: clamp(2.25rem, 4vw, 3.1rem);
  margin-bottom: 16px;
}

.hero p {
  max-width: 640px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #475569;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.card {
  background: #ffffff;
  border-radius: 24px;
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
}

.badge {
  display: inline-flex;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid #0f172a;
  background: #0f172a;
  color: #fff;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  text-decoration: none;
}

.dashboard-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 32px;
}

.panel {
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 24px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.panel h2,
.panel h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #475569;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.filters label {
  font-size: 0.75rem;
  color: #64748b;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.filters input,
.filters select {
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: #f8fafc;
  font-size: 0.85rem;
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead {
  background: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  text-align: left;
}

.chart {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.chart-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.chart-bar {
  flex: 1;
  height: 12px;
  border-radius: 999px;
  background: #e2e8f0;
  position: relative;
}

.chart-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #6366f1);
  width: var(--value, 0%);
}

.chart-label {
  font-size: 0.8rem;
  color: #475569;
  min-width: 120px;
}

.footer {
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-top: 40px;
}

@media (max-width: 640px) {
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .filters {
    flex-direction: column;
  }
}
