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

:root {
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
}

body {
  font-family: 'Inter', sans-serif;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, 0.4);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(156, 163, 175, 0.7);
}

.dark ::-webkit-scrollbar-thumb {
  background: rgba(75, 85, 99, 0.6);
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 114, 128, 0.8);
}

/* Transition Utilities */
.sidebar-transition {
  transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
}

.content-transition {
  transition: margin-left 0.3s ease-in-out;
}

/* Glassmorphism & Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dark .glass-card {
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ApexCharts dark mode override */
.dark .apexcharts-canvas .apexcharts-tooltip {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5) !important;
}

.dark .apexcharts-canvas .apexcharts-tooltip-title {
  background: #0f172a !important;
  border-bottom: 1px solid #334155 !important;
}

.dark .apexcharts-text tspan {
  fill: #94a3b8 !important;
}

.dark .apexcharts-gridline {
  stroke: #334155 !important;
}

.dark .apexcharts-legend-text {
  color: #cbd5e1 !important;
}

/* Modal overlay animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.animate-fade-in {
  animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Checkbox & Switch */
.toggle-checkbox:checked {
  right: 0;
  border-color: #6366f1;
}
.toggle-checkbox:checked + .toggle-label {
  background-color: #6366f1;
}

/* Table hover effects */
.table-row-hover {
  transition: background-color 0.15s ease;
}

/* Active navigation badge glow */
.nav-item-active {
  background-color: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border-right: 3px solid #6366f1;
}

.dark .nav-item-active {
  background-color: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  border-right: 3px solid #818cf8;
}
