/* ===== Navigation ===== */
.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
}

.nav a.active {
  color: var(--primary);
}

/* ===== Cards ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

/* ===== Grid ===== */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.5rem;
}

/* ===== Stats ===== */
.stat {
  font-size: 2rem;
  font-weight: 700;
}

.stat.success {
  color: var(--success);
}

.stat.warning {
  color: var(--primary);
}
``

/* ===== Tables ===== */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.table th {
  text-align: left;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ===== Buttons ===== */
.button {
  background: var(--primary);
  color: white;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.button:hover {
  background: var(--primary-dark);
}

.button.secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

/* ===== Forms ===== */
.input {
  width: 100%;
  padding: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

.divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--primary),
    transparent
  );
  margin: 2rem 0;
}

.card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Stack on smaller screens */
@media (max-width: 800px) {
  .card-row {
    grid-template-columns: 1fr;
  }
}