/* 
  DARK MODE TOTAL OVERRIDES 
  Nordic Frost - Premium Edition
*/

:root {
  --night-bg: #050a12;          /* Ocean Deep Navy */
  --night-surface: #111a28;     /* Midnight Blue */
  --night-surface-lighter: #1e293b;
  --night-text: #f1f5f9;        /* Arctic White */
  --night-text-dim: #94a3b8;    /* Muted Steel Gray */
  --night-primary: #22d3ee;     /* Glacial Cyan */
  --night-accent: #38bdf8;      /* Ice Blue */
  --night-shadow-dark: rgba(0, 0, 0, 0.8); /* Refined deeper shadow */
  --night-shadow-light: rgba(0, 0, 0, 0);   /* REMOVED white shadow */
  --night-border: rgba(34, 211, 238, 0.12); /* More subtle border */
}

/* Global Transition - SMOOTH THEME SWITCHING */
* {
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease !important;
}

/* Base Body */
.dark body {
  background-color: var(--night-bg) !important;
  color: var(--night-text) !important;
  background-image: radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.04) 0%, transparent 50%) !important;
}

/* Logo Animation */
.dark .logo, .dark .sidebar-logo, .dark #logo {
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.3));
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease !important;
}

/* Main Backgrounds & Containers */
.dark main, 
.dark .bg-surface, 
.dark .bg-background-light,
.dark header {
  background-color: var(--night-bg) !important;
}

/* Sidebar Glassmorphism */
.dark aside {
  background-color: #020617 !important;
  border-right: 1px solid var(--night-border) !important;
}

/* Card Improvements - REMOVING WHITE SHADOWS */
.dark .neu-flat, .dark .stat-card, .dark .lote-card, .dark .animal-card, .dark .socio-card {
  background: linear-gradient(145deg, #0e1625, #070d18) !important;
  box-shadow: 10px 10px 20px #03060a, -5px -5px 15px rgba(255,255,255,0.01) !important; /* Minimal to zero light shadow */
  border: 1px solid var(--night-border) !important;
}

/* Specific fix for top-right date pill shadow */
.dark .bg-white\/80, .dark .shadow-sm, .dark .rounded-full {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.5) !important;
}

.dark .neu-sm {
  background-color: var(--night-surface) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6) !important;
  border: 1px solid var(--night-border) !important;
}

.dark .neu-inset {
  background-color: #020617 !important;
  box-shadow: inset 4px 4px 12px rgba(0,0,0,0.8) !important;
  border: 1px solid var(--night-border) !important;
}

/* Forms & Inputs */
.dark input, .dark select, .dark textarea {
  background-color: #050a12 !important;
  color: #fff !important;
  border: 1px solid var(--night-border) !important;
}

/* Tables Visibility */
.dark table thead th {
  color: var(--night-text) !important;
  background-color: rgba(34, 211, 238, 0.03) !important;
  border-bottom: 1px solid var(--night-border) !important;
}

/* Buttons & Accents - CYAN GLOW */
.dark .bg-emerald-600, .dark .bg-emerald-500, .dark .btn-primary, .dark #btn-lote {
  background: linear-gradient(145deg, #22d3ee, #0ea5e9) !important;
  color: #050a12 !important;
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.2) !important;
}

.dark .text-emerald-600, .dark .text-emerald-500, .dark .text-secondary {
  color: var(--night-primary) !important;
}

/* Navigation Glow */
.dark aside nav a.active {
  background-color: rgba(34, 211, 238, 0.05) !important;
  border-left: 3px solid var(--night-primary) !important;
}

.dark aside nav a.active i, .dark aside nav a.active svg {
  color: var(--night-primary) !important;
  filter: drop-shadow(0 0 5px var(--night-primary));
}

