body.app-bg {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.dark-mode {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #f3f4f6;
}

body.dark-mode .card,
body.dark-mode .navbar,
body.dark-mode footer,
body.dark-mode .table,
body.dark-mode .list-group-item,
body.dark-mode .form-control,
body.dark-mode .form-select {
  background-color: #1f2937 !important;
  color: #f3f4f6 !important;
  border-color: #374151 !important;
}

body.dark-mode .text-secondary,
body.dark-mode .text-muted,
body.dark-mode .form-text {
  color: #d1d5db !important;
}

.auth-card {
  max-width: 460px;
}

.hero-card {
  border: 1px solid rgba(255, 255, 255, 0.4);
}

@media (max-width: 767px) {
  .navbar .nav-link {
    padding: 0.25rem 0;
  }
}

.dashboard-shell {
  position: relative;
}

.dashboard-hero {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #ffffff;
  border-radius: 20px;
  animation: slideUp 0.5s ease-out;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  min-width: 130px;
}

.badge-value {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.stat-card-modern {
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  animation: slideUp 0.5s ease-out;
}

.icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
}

.stat-label {
  font-size: 0.86rem;
  color: #6b7280;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
}

.dashboard-panel {
  border-radius: 16px;
}

.modern-list .list-group-item {
  border-left: 0;
  border-right: 0;
  padding: 0.85rem 0.2rem;
}

.loading-line {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e5e7eb 0%, #bfdbfe 50%, #e5e7eb 100%);
  background-size: 220% 100%;
  animation: shimmer 1.1s linear infinite;
  margin-bottom: 10px;
}

.dark-mode-toggle {
  position: fixed;
  right: 22px;
  top: 86px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #1e40af;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 1010;
}

.dark-mode-toggle:hover {
  transform: scale(1.05);
}

@keyframes shimmer {
  0% { background-position: 220% 0; }
  100% { background-position: -220% 0; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.dark-mode .dashboard-hero {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

body.dark-mode .stat-card-modern {
  background: #1f2937;
}

body.dark-mode .stat-value {
  color: #f3f4f6;
}

body.dark-mode .stat-label {
  color: #d1d5db;
}

body.dark-mode .dark-mode-toggle {
  background: #111827;
  color: #93c5fd;
}