:root {
  --primary-color: #0f4c81;
  --primary-dark: #0a355e;
  --accent-color: #2d8f5f;
  --surface-color: #f8fafc;
  --text-color: #243447;
  --border-color: rgba(15, 76, 129, 0.12);
}

body {
  background: linear-gradient(135deg, #f8fafc 0%, #eef4fb 100%);
  color: var(--text-color);
  font-family: 'Nunito', sans-serif;
}

.card {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 76, 129, 0.08);
}

.card-header {
  border-bottom: 1px solid var(--border-color);
  background: transparent;
}

.btn {
  border-radius: 12px;
}

.form-control,
.custom-select,
.form-select {
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.form-control:focus,
.custom-select:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(15, 76, 129, 0.15);
  border-color: var(--primary-color);
}

.dashboard-hero {
  background: linear-gradient(120deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: 0;
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
}

.dashboard-hero .badge {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.stat-card {
  border-left: 4px solid var(--primary-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 76, 129, 0.14);
}

.stat-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: rgba(15, 76, 129, 0.12);
  color: var(--primary-color);
}

.sidebar .nav-item .nav-link {
  border-radius: 0.75rem;
  margin: 0.18rem 0.5rem;
}

.sidebar .nav-item.active .nav-link {
  background-color: rgba(255, 255, 255, 0.15);
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-overlay .loading-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(15, 76, 129, 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .dashboard-hero {
    padding: 1rem;
  }

  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
