body {
  background: #f8fafc;
  font-family: "Inter", sans-serif;
}
html.dark body {
  background: #0b1120;
}
.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
html.dark .card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.sidebar-bg {
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
}
html.dark .sidebar-bg {
  background: #172033;
  border-right-color: #334155;
}
.header-bg {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}
html.dark .header-bg {
  background: #172033;
  border-bottom-color: #334155;
}
.text-heading {
  color: #0f172a;
}
html.dark .text-heading {
  color: #f1f5f9;
}
.text-body {
  color: #475569;
}
html.dark .text-body {
  color: #cbd5e1;
}
.text-muted {
  color: #94a3b8;
}
html.dark .text-muted {
  color: #64748b;
}
.divider {
  border-color: #e2e8f0;
}
html.dark .divider {
  border-color: #334155;
}
.input-field {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #1e293b;
}
.input-field:focus {
  border-color: #4f46e5;
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
html.dark .input-field {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  transition: all 0.2s;
}
.sidebar-link:hover {
  background: #f1f5f9;
  color: #334155;
}
.sidebar-link.active {
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.1), transparent);
  color: #4f46e5;
  border-right: 3px solid #4f46e5;
}
html.dark .sidebar-link {
  color: #94a3b8;
}
html.dark .sidebar-link:hover {
  background: #0f172a;
  color: #e2e8f0;
}
html.dark .sidebar-link.active {
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.2), transparent);
  color: #a5b4fc;
  border-right-color: #818cf8;
}
.icon-btn {
  padding: 0.5rem;
  border-radius: 0.75rem;
  color: #475569;
  transition: all 0.2s;
}
.icon-btn:hover {
  background: #f1f5f9;
}
html.dark .icon-btn {
  color: #cbd5e1;
}
html.dark .icon-btn:hover {
  background: #0f172a;
}
.badge-green {
  background: #dcfce7;
  color: #15803d;
}
html.dark .badge-green {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}
.badge-yellow {
  background: #fef3c7;
  color: #b45309;
}
html.dark .badge-yellow {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}
.badge-red {
  background: #fee2e2;
  color: #b91c1c;
}
html.dark .badge-red {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}
.badge-blue {
  background: #dbeafe;
  color: #1d4ed8;
}
html.dark .badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}
.badge-indigo {
  background: #e0e7ff;
  color: #4338ca;
}
html.dark .badge-indigo {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}
.badge-pink {
  background: #fce7f3;
  color: #be185d;
}
html.dark .badge-pink {
  background: rgba(236, 72, 153, 0.15);
  color: #f9a8d4;
}
.badge-purple {
  background: #f3e8ff;
  color: #7e22ce;
}
html.dark .badge-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
}
.premium-card {
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.premium-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
html.dark .premium-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}
.gradient-text {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.table-head {
  background: #f8fafc;
}
html.dark .table-head {
  background: #0f172a;
}
.table-row:hover {
  background: #f8fafc;
}
html.dark .table-row:hover {
  background: #0f172a;
}
.sidebar-overlay {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}
@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
}
.notif-badge {
  animation: pulseGlow 2s infinite;
}
.modal-animate {
  animation: modalIn 0.25s ease-out;
}
@keyframes modalIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.toast-enter {
  animation: toastSlideIn 0.3s ease-out;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 100px;
}
html.dark ::-webkit-scrollbar-thumb {
  background: #475569;
}
*:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
  border-radius: 4px;
}
@media print {
  .no-print {
    display: none !important;
  }
  body {
    background: white !important;
  }
  .card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
}
.view-toggle-btn.active {
  background: #4f46e5;
  color: white;
}
.parent-card-img {
  transition: transform 0.4s;
}
.parent-card:hover .parent-card-img {
  transform: scale(1.05);
}
