:root {
  --primary: #3b82f6;       /* light blue */
  --primary-dark: #2563eb;
  --primary-soft: #e0edff;

  --bg-light: #f5f9ff;
  --card-bg: #ffffff;

  --text-dark: #1f2937;
  --text-muted: #6b7280;

  --border-soft: #e5efff;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* =========================
   Base
========================= */

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}

a {
  text-decoration: none;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* =========================
   Navbar
========================= */

.navbar {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.navbar .navbar-brand,
.navbar .nav-link {
  color: #fff !important;
  font-weight: 500;
}

.navbar .nav-link:hover {
  text-decoration: underline;
}

.navbar-toggler {
  border-color: rgba(255,255,255,0.4);
}

/* =========================
   Cards
========================= */

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

.card + .card {
  margin-top: 1rem;
}

.card h5,
.card h6 {
  font-weight: 600;
}

/* Dashboard stat cards */
.card.stat {
  text-align: center;
}

.card.stat .stat-value {
  font-size: 2rem;
  font-weight: 700;
}

/* =========================
   Buttons
========================= */

.btn {
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: #fff;
}

.btn-outline-secondary {
  color: var(--text-dark);
  border-color: var(--border-soft);
}

.btn-outline-secondary:hover {
  background-color: #eef4ff;
}

/* =========================
   Badges
========================= */

.badge {
  border-radius: 999px;
  padding: 0.35em 0.65em;
  font-weight: 500;
}

.badge-soft {
  background-color: var(--primary-soft);
  color: var(--primary-dark);
}

.badge.text-bg-success {
  background-color: #22c55e !important;
}

.badge.text-bg-danger {
  background-color: #ef4444 !important;
}

.badge.text-bg-warning {
  background-color: #f59e0b !important;
}

.badge.text-bg-info {
  background-color: #0ea5e9 !important;
}

/* =========================
   Page titles
========================= */

.page-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

/* =========================
   Tables
========================= */

.table {
  margin-bottom: 0;
}

.table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-soft);
}

.table tbody tr:hover {
  background-color: #f2f7ff;
}

.table td,
.table th {
  vertical-align: middle;
}

/* =========================
   Lists
========================= */

.list-group-item {
  border-color: var(--border-soft);
}

.list-group-item:hover {
  background-color: #f2f7ff;
}

/* =========================
   Forms
========================= */

.form-control,
.form-select {
  border-radius: var(--radius-sm);
  border-color: var(--border-soft);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.15rem rgba(59, 130, 246, 0.15);
}

.form-label {
  font-weight: 500;
}

/* =========================
   Utilities
========================= */

.container-narrow {
  max-width: 720px;
}

.shadow-soft {
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

/* =========================
   Images
========================= */

img {
  max-width: 100%;
}

img.rounded-thumb {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
}

/* =========================
   Print (Reports)
========================= */

@media print {
  .navbar,
  .btn,
  .no-print {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
