body {
  background: #f8fafc;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #334155;
}

:root {
  --midnight-blue: #0f172a;
  --slate-700: #334155;
  --indigo-600: #4f46e5;
  --gold-accent: #f59e0b;
}

.navbar {
  /* background-color: var(--midnight-blue) !important; */
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 0;
  /* z-index: 999; */
}

.navbar.navbar-dark.bg-primary {
  background-color: var(--midnight-blue) !important;
  background-image: none !important;
  border: none;
}

.navbar-brand span {
  letter-spacing: 1px;
}

.card {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  background: #fff;
}

.list-group-item {
  border: none;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.15s ease;
  border-radius: 8px;
  overflow: hidden;
  margin: 2px 8px;
  color: var(--slate-700);
}

.list-group-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-group-item i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  color: #94a3b8;
}

.list-group-item-action:hover {
  background-color: #f1f5f9;
  color: var(--indigo-600);
  transform: translateX(4px);
}

.list-group-item-action:hover i {
  color: var(--indigo-600);
}

.list-group-item.active,
.list-group-item.fw-bold {
  background: var(--indigo-600) !important;
  color: #fff !important;
  border: none;
  font-weight: 500;
}

.list-group-item.fw-bold i {
  opacity: 1;
}

.list-group-item.active i {
  color: #fff;
}

.sidebar-section-title {
  padding: 1rem 1.25rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

/* Trendy minimal tweaks */
.page-header {
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
  color: #fff;
  border-radius: 12px;
  padding: 16px 18px;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}

.stat-chip .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.icon-blue {
  background: #3b82f6;
}

.icon-green {
  background: #10b981;
}

.icon-amber {
  background: #f59e0b;
}

.icon-rose {
  background: #f43f5e;
}

.muted {
  color: #64748b;
}

.section-title {
  font-weight: 700;
  color: #0f172a;
}

.table thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.mini {
  font-size: 12px;
}

.btn-soft {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.btn-soft:hover {
  background: #e2e8f0;
}

/* Avatar helpers */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
}

/* Card banner */
.card-banner {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #fff;
  border-radius: 12px;
  padding: 16px;
}

/* Thumbnail */
.thumb {
  width: 80px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}

/* Advanced Dashboard Enhancements */
.kpi-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

.kpi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
}

.kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.bg-purple-subtle {
  background: #f3e8ff;
}

.text-purple {
  color: #6b21a8;
}

.bg-indigo {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%) !important;
}

.badge-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.btn-soft-success {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #d1fae5;
}

.btn-soft-success:hover {
  background: #d1fae5;
}

.btn-soft-warning {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fef3c7;
}

.btn-soft-warning:hover {
  background: #fef3c7;
}

.btn-white {
  background: #fff;
  color: #64748b;
}

.btn-white:hover {
  background: #f8fafc;
  color: #4f46e5;
}

.btn-white.active {
  border-color: #4f46e5 !important;
  color: #4f46e5 !important;
  font-weight: bold;
}

@media print {

  .btn-group,
  aside,
  nav,
  .btn,
  .card-header .text-decoration-none {
    display: none !important;
  }

  main {
    width: 100% !important;
    margin: 0 !important;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #eee !important;
  }
}