/* ============================================================= */
/* NAYFINIX GLOBAL THEME CORE                                    */
/* Shared Design Tokens & Global Resets for all modes           */
/* ============================================================= */

:root {
  /* Dynamic Background Color - Switches between modes */
  --theme-bg: #0d1b2a;
  --theme-text: #f8f9fa;
  --theme-accent: #00d4ff;
  --theme-accent-glow: rgba(0, 212, 255, 0.4);
  
  /* Standard Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  
  /* Transition Timing */
  --theme-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles applied to EVERY page */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global Scrollbar Restoration (Dark Mode by default) */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
  background-clip: content-box;
}

/* Light Mode Scrollbar Overrides */
html.light-mode ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
}

html.light-mode ::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Base Material Icon Fix */
.material-icons {
  vertical-align: middle;
}
