/* ===== NL Consulting – Grey / Blue / White Theme ===== */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', 'Segoe UI', Roboto, sans-serif;
  background: #f1f4f9;               /* soft grey background */
  color: #212529;
  padding-top: 56px;
  line-height: 1.6;
}

/* ── Navbar ── */
.navbar {
  background: #0077b6 !important;    /* blue */
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
}
.navbar-brand {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.navbar-brand img { height: 30px; }
.navbar-nav {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  margin-left: 2rem;
}
.nav-link {
  color: #ffffff !important;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.nav-link:hover { background: rgba(255,255,255,0.15); }
.nav-link.active { background: rgba(255,255,255,0.25); font-weight: 600; }
.navbar-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #ffffff;
  font-size: 0.9rem;
}
.btn-outline {
  border: 1px solid #ffffff;
  color: #ffffff;
  background: transparent;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-outline:hover {
  background: #ffffff;
  color: #0077b6;
}

/* ── Layout container (used in layout.php) ── */
.container-fluid { padding: 0 1rem; }
.row {
  display: flex;
  flex-wrap: nowrap;
  min-height: calc(100vh - 56px);
}

/* ── Sidebar ── */
.sidebar {
  width: 220px;
  min-width: 220px;
  background: #ffffff;
  border-right: 1px solid #dee2e6;
  overflow-y: auto;
  padding: 1.5rem 0;
  height: calc(100vh - 56px);
  position: sticky;
  top: 56px;
}
.sidebar .nav-link {
  display: block;
  color: #495057 !important;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}
.sidebar .nav-link:hover {
  background: #e9ecef;
  color: #0077b6 !important;
}
.sidebar .nav-link.active {
  background: #e6f0ff;
  color: #0077b6 !important;
  font-weight: 600;
  border-left: 4px solid #0077b6;
}
.border-top { border-top: 1px solid #dee2e6; }

/* ── Main Content ── */
.main-content {
  flex: 1;
  padding: 2rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  margin: 1rem 1rem 1rem 0;
  overflow-y: auto;
}

/* ── Stat Cards (flex row) ── */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.stat-card {
  flex: 1 1 220px;
  min-width: 180px;
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}
.stat-card:nth-child(1)::before { background: #0077b6; }  /* blue */
.stat-card:nth-child(2)::before { background: #f0ad4e; }  /* orange */
.stat-card:nth-child(3)::before { background: #d9534f; }  /* red */
.stat-label {
  display: block;
  font-size: 0.8rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}
.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.25rem;
}
.stat-sub {
  display: block;
  font-size: 0.9rem;
  color: #495057;
  margin-bottom: 1rem;
}
.stat-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0077b6;
  text-decoration: none;
}
.stat-link:hover { text-decoration: underline; }

/* ── Admin Grid (for admin landing page buttons) ── */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}
.admin-card {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.2s;
  text-decoration: none;
  color: #212529;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 1rem;
}
.admin-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  color: #0077b6;
  text-decoration: none;
}

/* ── Cards & Tables ── */
.card {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #dee2e6;
  background: #f8f9fa;
}
.card-header h2, .card-header h5 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #212529;
}

.table-responsive { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  color: #212529;
}
.table th {
  background: #0077b6;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}
.table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #dee2e6;
  font-size: 0.9rem;
}
.table tbody tr:hover { background: #f8f9fa; }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  text-transform: capitalize;
}
.badge--draft { background: #6c757d; color: #fff; }
.badge--ready { background: #0077b6; color: #fff; }
.badge--submitted { background: #0dcaf0; color: #000; }
.badge--paid { background: #198754; color: #fff; }
.badge--denied { background: #dc3545; color: #fff; }
.badge--partial { background: #ffc107; color: #000; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: #0077b6;
  color: #ffffff;
}
.btn-primary:hover { background: #005a8b; }
.btn-sm { padding: 0.35rem 0.9rem; font-size: 0.8rem; }

/* ── Alerts ── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  border-left: 4px solid;
}
.alert--success { background: #d1e7dd; color: #0f5132; border-color: #198754; }
.alert--danger { background: #f8d7da; color: #842029; border-color: #dc3545; }
.alert--warning { background: #fff3cd; color: #664d03; border-color: #ffc107; }
.alert-close {
  float: right;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: inherit;
}

/* ── Footer ── */
footer {
  background: #f8f9fa;
  color: #6c757d;
  text-align: center;
  padding: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid #dee2e6;
}

/* ── Links ── */
a { color: #0077b6; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Code (claim numbers) ── */
code {
  background: #e9ecef;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #005a8b;
}

/* ── Utility ── */
.text-muted { color: #6c757d; }
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.w-100 { width: 100%; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin: 0.5rem; padding: 1rem; }
  .navbar-nav { display: none; }
  .stats-row { flex-direction: column; }
  .admin-grid { grid-template-columns: 1fr; }
}