@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --ldgc-navy: #172044;
  --ldgc-navy-hover: #1e2a5c;
  --ldgc-red: #C8102E;
  --ldgc-yellow: #ffeb3b;
  --ldgc-grey: #9e9e9e;
  --ldgc-light: #f8f9fa;
  --ldgc-dark: #121212;
  --body-bg: #f4f6fc;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--body-bg);
  color: var(--ldgc-dark);
}

/* === Navbar === */
.navbar-ldgc {
  background-color: var(--ldgc-navy) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-bottom: 3px solid var(--ldgc-red);
}

.navbar-ldgc::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ffeb3b 0%, #ffeb3b 33%, #002395 33%, #002395 66%, #ce1126 66%, #ce1126 100%);
  opacity: 0.8;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85) !important;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
  color: var(--ldgc-yellow) !important;
  background-color: rgba(255,255,255,0.05);
}

/* === Widget Titles === */
.widgettitle-modern {
  background: var(--ldgc-navy);
  color: white;
  padding: 12px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 10px 10px 0 0;
  margin-bottom: 0;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.widgettitle-modern::before {
  content: "";
  display: block;
  width: 6px;
  height: 20px;
  background-color: var(--ldgc-red);
  border-radius: 4px;
}

/* === Cards === */
.ldgc-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  border: none;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 25px;
}

.ldgc-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* === Tables === */
.table-modern {
  margin-bottom: 0;
}

.table-modern thead th {
  background-color: #f8f9fb;
  color: var(--ldgc-navy);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e2e8f0;
  padding: 12px 15px;
}

.table-modern tbody td {
  padding: 12px 15px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
}

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

.table-modern tbody tr:last-child td {
  border-bottom: none;
}

/* Link in tables */
.table-modern a {
  color: var(--ldgc-navy);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.table-modern a:hover {
  color: var(--ldgc-red);
}

/* === Stats Cards Grid Layout === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Fix for mobile */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
