/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Page background */
body { background-color: #F8F9FA; }

/* Cards: fine border instead of shadow */
.card {
  background: #FFFFFF;
  border: 1px solid #E9ECEF;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* Metric numbers (large, mono) */
.metric-value {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.metric-value-sm {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Table refinement */
.data-table th {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6B7280;
  border-bottom: 2px solid #E9ECEF;
  padding: 0.75rem 1rem;
}
.data-table td {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  border-bottom: 1px solid #F3F4F6;
}
.data-table tbody tr:hover { background-color: #FAFAFA; }

/* ── Typography ─────────────────────────────────────────── */
/* Page titles (h1 inside views) */
h1 {
  font-size: 1.5rem;   /* text-2xl */
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
}

/* Card section headers (h2) */
h2.card-title,
.card h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6B7280;
  margin-bottom: 1rem;
}

/* ── Button system ──────────────────────────────────────── */
/* Base */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
}

/* Primary: amber fill */
.btn-primary {
  background-color: #D97706;
  color: #FFFFFF;
  font-weight: 600;
}
.btn-primary:hover { background-color: #B45309; }

/* Ghost: light outline — navigation prev/next, secondary actions */
.btn-ghost {
  background-color: #FFFFFF;
  color: #374151;
  border-color: #D1D5DB;
}
.btn-ghost:hover { background-color: #F9FAFB; border-color: #9CA3AF; }

/* Success: green — add/create actions */
.btn-success {
  background-color: #16A34A;
  color: #FFFFFF;
}
.btn-success:hover { background-color: #15803D; }

/* Cancel: muted */
.btn-cancel {
  background-color: #F3F4F6;
  color: #6B7280;
  border-color: #E5E7EB;
}
.btn-cancel:hover { background-color: #E5E7EB; color: #374151; }

/* Nav active state: amber bottom-border */
.nav-link-active {
  color: #F59E0B;
  border-bottom: 2px solid #F59E0B;
  padding-bottom: 2px;
  font-weight: 600;
}
