:root {
  /* === ICWealth Brand === */
  --primary: #015EC7;
  --primary-hover: #014db0;
  --primary-active: #013f91;
  --primary-light: #eef6ff;
  --primary-border: #bfdbfe;

  /* === Tailwind Admin Layout Tokens === */
  --sidebar-bg: #ffffff;
  --sidebar-border: #e2e8f0;
  --sidebar-text: #637381;
  --sidebar-text-active: #ffffff;
  --sidebar-active-bg: #015EC7;
  --sidebar-hover-bg: #f1f5f9;
  --sidebar-section-text: #99a1af;
  --topbar-bg: #ffffff;
  --topbar-border: rgba(226, 232, 240, 0.8);
  --page-bg: #f1f5f9;
  --card-bg: #ffffff;

  /* === Semantic Tokens === */
  --meta-primary: #015EC7;
  --meta-primary-deep: #013f91;
  --meta-ink: #0f172a;
  --meta-canvas: #ffffff;
  --meta-surface: #f1f5f9;
  --meta-hairline: #e2e8f0;
  --meta-text: #1e293b;
  --meta-muted: #64748b;
  --radius-card: 16px;
  --radius-btn: 10px;
  --radius-input: 10px;

  /* Shadcn tokens */
  --card: #ffffff;
  --card-foreground: #0f172a;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #015EC7;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #f8fafc;
  --accent-foreground: #0f172a;
}

.dark {
  /* === Tailwind Admin Dark Layout === */
  --sidebar-bg: #1c2434;
  --sidebar-border: #2e3a4e;
  --sidebar-text: #8d99ae;
  --sidebar-text-active: #ffffff;
  --sidebar-active-bg: #015EC7;
  --sidebar-hover-bg: #243345;
  --sidebar-section-text: #566375;
  --topbar-bg: #24303f;
  --topbar-border: rgba(46, 58, 78, 0.8);
  --page-bg: #111928;
  --card-bg: #24303f;

  /* === Primary (sky in dark) === */
  --primary: #38bdf8;
  --primary-hover: #0ea5e9;
  --primary-active: #0284c7;
  --primary-light: rgba(56, 189, 248, 0.1);
  --primary-border: rgba(56, 189, 248, 0.25);
  --meta-primary: #38bdf8;
  --meta-primary-deep: #0ea5e9;
  --meta-ink: #f8fafc;
  --meta-canvas: #24303f;
  --meta-surface: #1c2434;
  --meta-hairline: #2e3a4e;
  --meta-text: #e2e8f0;
  --meta-muted: #8d99ae;

  /* Shadcn Dark */
  --card: #24303f;
  --card-foreground: #e2e8f0;
  --border: #2e3a4e;
  --input: #2e3a4e;
  --ring: #38bdf8;
  --muted: #1c2434;
  --muted-foreground: #8d99ae;
  --accent: #2e3a4e;
  --accent-foreground: #e2e8f0;
}

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  color: var(--meta-text);
  background-color: var(--meta-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  margin: 0;
  padding: 0;
}

#root {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Prevent accidental horizontal overflow blowout */
img, svg, video, canvas, audio, iframe, embed, object {
  max-width: 100%;
}

/* Standard Card Modern */
.card-modern {
  background-color: var(--meta-canvas);
  border: 1px solid var(--meta-hairline);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
}

button, a, select, input[type="button"], input[type="submit"], [role="button"] {
  touch-action: manipulation;
}

/* Prevent iOS Safari auto-zoom on input focus */
@media screen and (max-width: 768px) {
  input:not([type="checkbox"]):not([type="radio"]), select, textarea {
    font-size: 16px !important;
  }
}

/* iOS Safe Area Insets Helpers */
.pt-safe { padding-top: env(safe-area-inset-top, 0px); }
.pb-safe { padding-bottom: env(safe-area-inset-bottom, 0px); }
.pl-safe { padding-left: env(safe-area-inset-left, 0px); }
.pr-safe { padding-right: env(safe-area-inset-right, 0px); }

.h-safe-screen {
  height: 100vh;
  height: 100dvh;
}

/* Smooth Touch Physics */
.smooth-touch-scroll {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
}

/* Tactile touch press feedback */
.touch-press {
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s ease;
}
.touch-press:active {
  transform: scale(0.95);
  opacity: 0.88;
}

/* =====================================================
   STANDARDIZED BUTTONS & UI ELEMENT TOKENS
   ===================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #015EC7 0%, #004fb0 100%);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(1, 94, 199, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #026de6 0%, #015EC7 100%);
  box-shadow: 0 6px 16px rgba(1, 94, 199, 0.35);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0) scale(0.98);
}
.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #ffffff;
  color: #334155 !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-btn);
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.dark .btn-secondary {
  background-color: #1e293b;
  color: #e2e8f0 !important;
  border-color: #334155;
}
.btn-secondary:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a !important;
}
.dark .btn-secondary:hover {
  background-color: #334155;
  color: #ffffff !important;
}
.btn-secondary:active {
  transform: scale(0.98);
}

.btn-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-btn);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-success:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  transform: translateY(-1px);
}
.btn-success:active {
  transform: scale(0.98);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-btn);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-danger:hover {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  transform: translateY(-1px);
}
.btn-danger:active {
  transform: scale(0.98);
}

/* ===== Shadcn Tailwind-Admin Card & Elements ===== */
.card-shadcn {
  background-color: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-shadcn:hover {
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.06);
}

/* Card Modern Container */
.card-modern {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}
.card-modern:hover {
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.06);
}

/* Input Fields (Shadcn style) */
.input-standard {
  width: 100%;
  padding: 0.55rem 0.85rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  font-size: 0.875rem;
  color: var(--card-foreground);
  outline: none;
  transition: all 0.15s ease-in-out;
}
.input-standard:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(1, 94, 199, 0.14);
}

/* Pill status badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  line-height: 1;
  border-width: 1px;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.animate-fade-in {
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
}

/* ===== Mobile UI optimizations (no logic changes) ===== */
@media (max-width: 1023px) {
  /* overall spacing */
  .container,
  .page,
  .content,
  main {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* cards */
  .card,
  .panel,
  .section,
  .bg-white.rounded-xl,
  .bg-white.rounded-xl {
    border-radius: 16px !important;
  }

  /* header */
  header,
  .topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    touch-action: none;
  }

  .topbar .right-actions,
  header .right-actions {
    gap: 8px !important;
  }

  /* add subtle shadow when on mobile */
  aside {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  }

  /* allow main content full width */
  .app-shell,
  .layout,
  .root {
    grid-template-columns: 1fr !important;
  }

  /* tables: horizontal scroll */
  .table-wrap,
  .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 720px;
  }

  th,
  td {
    white-space: nowrap;
  }

  /* forms: full width inputs, tighter spacing */
  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  /* prevent iOS zoom */
  .form-row {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .form-actions {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .form-actions > button {
    width: 100% !important;
  }

  /* modals/drawers */
  .modal,
  .dialog {
    align-items: flex-end !important;
  }

  .modal-content,
  .dialog-content {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 18px 18px 0 0 !important;
    max-height: 88vh !important;
    overflow: auto !important;
  }

  /* detail pages: stack columns */
  .grid,
  .grid-cols-3,
  .grid-cols-2,
  .lg\:grid-cols-3,
  .lg\:col-span-2 {
    grid-template-columns: 1fr !important;
  }

  /* buttons: bigger touch targets */
  button {
    min-height: 40px;
  }

  .btn,
  .button {
    min-height: 42px;
  }

  /* Reduce padding for mobile components */

  .p-6 {
    padding: 1rem !important;
  }

  .p-5 {
    padding: 1rem !important;
  }

  .px-6 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .py-6 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .gap-6 {
    gap: 1rem !important;
  }
}

/* helper: safe horizontal scroll container */
.table-wrap {
  overflow-x: auto;
}

/* ===== Mobile Drawer Sidebar (override) ===== */
@media (max-width: 1023px) {
  /* Dynamic viewport height on mobile to prevent bottom bar cut off */
  .h-screen {
    height: 100dvh !important;
  }

  /* Smooth inertial momentum scrolling globally on mobile */
  .overflow-auto,
  .overflow-y-auto,
  .overflow-x-auto {
    -webkit-overflow-scrolling: touch !important;
  }

  /* Treat sidebarOpen=true (w-72) as drawer open; sidebarOpen=false (w-20) as hidden */
  aside {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100dvh !important;
    z-index: 60 !important;
    will-change: transform;
    transition: transform 0.2s ease !important;
  }

  aside nav {
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 96px !important; /* Safe padding for bottom browser bars */
  }

  /* Hidden state */
  aside.w-20 {
    transform: translateX(-110%) !important;
  }

  /* Open state */
  aside.w-72 {
    width: 82vw !important;
    max-width: 320px !important;
    transform: translateX(0) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  }

  /* Ensure sidebar items are clickable */
  aside * {
    pointer-events: auto;
  }

  /* Don't reserve left space for sidebar on mobile */
  .flex-1.flex.flex-col.overflow-hidden {
    margin-left: 0 !important;
  }
}

/* ===== Mobile backdrop for closing sidebar ===== */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 55;
  display: none;
}

@media (max-width: 1023px) {
  .mobile-backdrop {
    display: block;
  }
}

/* ===== Mobile notification dropdown improvements ===== */
@media (max-width: 1023px) {
  /* target the notification popup (uses absolute + bg-white + rounded-xl + shadow) */
  .notif-dropdown {
    position: fixed !important;
    top: 56px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    max-height: 70vh !important;
    overflow: auto !important;
    border-radius: 16px !important;
  }

  .notif-dropdown .notif-item {
    padding: 12px !important;
  }
}

/* Mobile typography & spacing tweaks */
@media (max-width: 1023px) {
  html {
    font-size: 15px;
  }

  /* Synchronized base font size for mobile text inheritance */
  body {
    font-size: 13px !important;
  }

  /* Opt: Increase base font size for mobile readability */
  h1,
  h2,
  h3 {
    letter-spacing: -0.01em;
  }

  .notif-dropdown {
    width: 92vw !important;
  }

  table th,
  table td {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  table th {
    font-size: 10px !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .sidebar-open {
    width: 100% !important;
  }

  /* Nav items smaller on mobile */
  aside nav button {
    font-size: 13px !important;
    padding: 10px !important;
  }

  /* Hide scrollbars for horizontal scrolling areas */
  .no-scrollbar::-webkit-scrollbar {
    display: none;
  }

  .no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-slide-in-right {
  animation: slideInRight 0.3s ease-out forwards;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-slide-in-left {
  animation: slideInLeft 0.3s ease-out forwards;
}

@keyframes icwspin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== Mobile Bottom Navigation Bar (Shadcn Floating Dock Style) ===== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  padding-bottom: max(env(safe-area-inset-bottom, 0px), 8px);
  padding-top: 6px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px -2px rgba(0, 0, 0, 0.05);
}

.dark .mobile-bottom-nav {
  background: rgba(9, 13, 22, 0.92);
  border-top-color: var(--border);
  box-shadow: 0 -4px 24px -2px rgba(0, 0, 0, 0.4);
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  padding: 6px 4px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 12px;
  position: relative;
}

.mobile-nav-btn.active {
  color: var(--primary);
  font-weight: 700;
}

.dark .mobile-nav-btn.active {
  color: var(--primary);
}

.mobile-nav-btn.active::after {
  content: '';
  position: absolute;
  top: 1px;
  width: 18px;
  height: 3px;
  border-radius: 9999px;
  background: var(--primary);
  box-shadow: 0 1px 8px var(--primary);
}

.mobile-nav-btn:active {
  transform: scale(0.92);
}

/* Bottom Sheet slide up */
@keyframes bottomSheetSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-bottom-sheet {
  animation: bottomSheetSlideUp 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Toast Auto-hide Countdown Bar */
@keyframes toastCountdown {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* =====================================================
   TAILWIND ADMIN SIDEBAR UTILITIES
   ===================================================== */
.sidebar-ta {
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
}

.sidebar-section-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sidebar-section-text);
  padding: 0 12px;
  margin-top: 24px;
  margin-bottom: 6px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--sidebar-text);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
}

.sidebar-nav-item:hover {
  background-color: var(--sidebar-hover-bg);
  color: var(--meta-text);
}

.sidebar-nav-item.active {
  background-color: var(--sidebar-active-bg);
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(1, 94, 199, 0.28);
}

/* Topbar */
.topbar-ta {
  background-color: var(--topbar-bg);
  border-bottom: 1px solid var(--topbar-border);
}

/* Page background */
.page-bg-ta {
  background-color: var(--page-bg);
}

/* Body background update */
body {
  background-color: var(--page-bg);
}

/* Page content scrollable */
.page-content-ta {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--page-bg);
}

/* Stat card icon box */
.stat-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-thumb { background: #334155; }
.dark ::-webkit-scrollbar-thumb:hover { background: #475569; }

/* =====================================================
   UNIVERSAL TAILWIND ADMIN DARK MODE STYLES & OVERRIDES
   ===================================================== */
.dark body,
.dark html {
  background-color: #111928 !important;
  color: #e2e8f0 !important;
}

/* Backgrounds in Dark Mode */
.dark .bg-white {
  background-color: #1c2434 !important;
  color: #e2e8f0;
}

.dark .bg-slate-50,
.dark .bg-gray-50 {
  background-color: #161e2e !important;
}

.dark .bg-slate-100,
.dark .bg-gray-100 {
  background-color: #24303f !important;
}

.dark .bg-slate-200,
.dark .bg-gray-200 {
  background-color: #2e3a4e !important;
}

.dark .bg-slate-50\/50,
.dark .bg-slate-50\/60,
.dark .bg-slate-50\/80 {
  background-color: rgba(22, 30, 46, 0.75) !important;
}

.dark .bg-white\/60,
.dark .bg-white\/80 {
  background-color: rgba(28, 36, 52, 0.8) !important;
}

/* Borders & Dividers in Dark Mode */
.dark .border-slate-100,
.dark .border-gray-100,
.dark .border-slate-200,
.dark .border-gray-200,
.dark .border-slate-200\/50,
.dark .border-slate-200\/60,
.dark .border-slate-200\/70 {
  border-color: #2e3a4e !important;
}

.dark .border-slate-300,
.dark .border-gray-300 {
  border-color: #3f4d67 !important;
}

.dark .divide-slate-100 > :not([hidden]) ~ :not([hidden]),
.dark .divide-slate-200 > :not([hidden]) ~ :not([hidden]),
.dark .divide-gray-100 > :not([hidden]) ~ :not([hidden]) {
  border-color: #2e3a4e !important;
}

/* Typography in Dark Mode */
.dark .text-slate-900,
.dark .text-gray-900,
.dark .text-slate-850,
.dark .text-slate-800,
.dark .text-gray-800 {
  color: #f8fafc !important;
}

.dark .text-slate-700,
.dark .text-gray-700 {
  color: #e2e8f0 !important;
}

.dark .text-slate-600,
.dark .text-gray-600 {
  color: #cbd5e1 !important;
}

.dark .text-slate-500,
.dark .text-gray-500 {
  color: #94a3b8 !important;
}

.dark .text-slate-400,
.dark .text-gray-400 {
  color: #64748b !important;
}

/* Dark Mode Tables */
.dark table {
  background-color: #1c2434;
  color: #e2e8f0;
}

.dark table thead,
.dark table thead tr,
.dark table thead th {
  background-color: #161e2e !important;
  color: #94a3b8 !important;
  border-color: #2e3a4e !important;
}

.dark table tbody tr {
  background-color: #1c2434;
  border-color: #2e3a4e !important;
}

.dark table tbody tr:hover {
  background-color: #24303f !important;
}

.dark table td {
  border-color: #2e3a4e !important;
  color: #e2e8f0 !important;
}

/* Dark Mode Form Inputs & Selects */
.dark input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.dark select,
.dark textarea {
  background-color: #161e2e !important;
  border-color: #2e3a4e !important;
  color: #f8fafc !important;
}

.dark input::placeholder,
.dark textarea::placeholder {
  color: #64748b !important;
}

.dark select option {
  background-color: #1c2434 !important;
  color: #f8fafc !important;
}

/* Dark Mode Modals & Overlays */
.dark .modal-content,
.dark [role="dialog"],
.dark .bg-white.rounded-2xl.shadow-2xl,
.dark .bg-white.rounded-3xl.shadow-2xl {
  background-color: #1c2434 !important;
  border-color: #2e3a4e !important;
  color: #e2e8f0 !important;
}

/* Dark Mode Dropdowns & Popovers */
.dark .notif-dropdown,
.dark .dropdown-menu {
  background-color: #1c2434 !important;
  border-color: #2e3a4e !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6) !important;
}

/* Dark Mode Pagination & Pills */
.dark .pagination-btn {
  background-color: #161e2e !important;
  border-color: #2e3a4e !important;
  color: #94a3b8 !important;
}

.dark .pagination-btn:hover {
  background-color: #24303f !important;
  color: #ffffff !important;
}

.dark .pagination-btn.active {
  background-color: #015EC7 !important;
  color: #ffffff !important;
}



