/* ============================================================
   NDIS Portal - Modern Theme & Responsive Stylesheet
   ============================================================ */

:root {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --brand-primary: #4f46e5;
  --brand-light: #eef2ff;
}

html.dark {
  --bg-main: #0b0f19;
  --bg-surface: #111827;
  --bg-card: #1f2937;
  --border-color: #374151;
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --brand-primary: #6366f1;
  --brand-light: #1e1b4b;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Dark mode overrides for common components */
html.dark .bg-white {
  background-color: #111827 !important;
}
html.dark .bg-slate-50 {
  background-color: #0b0f19 !important;
}
html.dark .bg-slate-100 {
  background-color: #1f2937 !important;
}
html.dark .border-slate-200,
html.dark .border-slate-200\/80,
html.dark .border-slate-100 {
  border-color: #374151 !important;
}
html.dark .text-slate-900 {
  color: #f9fafb !important;
}
html.dark .text-slate-800 {
  color: #f3f4f6 !important;
}
html.dark .text-slate-700 {
  color: #e5e7eb !important;
}
html.dark .text-slate-600 {
  color: #9ca3af !important;
}
html.dark .text-slate-500 {
  color: #94a3b8 !important;
}
html.dark input,
html.dark select,
html.dark textarea {
  background-color: #1f2937 !important;
  color: #f9fafb !important;
  border-color: #374151 !important;
}
html.dark input:focus,
html.dark select:focus,
html.dark textarea:focus {
  border-color: #6366f1 !important;
  background-color: #111827 !important;
}
html.dark tr:hover {
  background-color: #1f2937 !important;
}

/* Sidebar Active Navigation Highlight */
.nav-item {
  transition: all 0.15s ease-in-out;
}
.nav-item.active {
  background-color: #eef2ff;
  color: #4338ca;
  font-weight: 700;
}
.nav-item.active i {
  color: #4f46e5;
}
html.dark .nav-item.active {
  background-color: #1e1b4b !important;
  color: #a5b4fc !important;
}
html.dark .nav-item.active i {
  color: #818cf8 !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
html.dark ::-webkit-scrollbar-thumb {
  background: #4b5563;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Glassmorphism utility */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
html.dark .glass {
  background: rgba(17, 24, 39, 0.85);
}

/* Quick Animation Fade-In */
.view-panel {
  animation: fadeIn 0.18s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Quantity input stepper style */
.qty-stepper-btn {
  user-select: none;
  touch-action: manipulation;
}

/* Fullscreen Corporate Login Animations */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.5deg);
  }
}

@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(10px) rotate(-0.5deg);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(1.12);
  }
}

.animate-float-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

.animate-float-reverse {
  animation: floatReverse 7s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 8s ease-in-out infinite;
}

