/* ============================================================
   HR Workforce Performance & Attrition Analytics Dashboard
   main.css — Design Tokens, Reset & Base Typography
   ============================================================ */

/* --- Google Font Import ----------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens ---------------------------------------- */
:root {
  /* Palette */
  --color-bg:            #0F172A;
  --color-card:          #1E293B;
  --color-card-hover:    #253349;
  --color-primary:       #3B82F6;
  --color-primary-light: #60A5FA;
  --color-success:       #22C55E;
  --color-warning:       #F59E0B;
  --color-danger:        #EF4444;
  --color-text:          #F8FAFC;
  --color-text-muted:    #94A3B8;
  --color-border:        rgba(148, 163, 184, 0.12);
  --color-sidebar:       #111C2E;

  /* Typography */
  --font-family:         'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs:        0.75rem;
  --font-size-sm:        0.8125rem;
  --font-size-base:      0.875rem;
  --font-size-md:        1rem;
  --font-size-lg:        1.25rem;
  --font-size-xl:        1.5rem;
  --font-size-2xl:       2rem;
  --font-weight-light:   300;
  --font-weight-normal:  400;
  --font-weight-medium:  500;
  --font-weight-semi:    600;
  --font-weight-bold:    700;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md:  0 4px 12px rgba(0, 0, 0, 0.45);
  --shadow-lg:  0 8px 30px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.25);

  /* Layout */
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 72px;
  --navbar-height: 64px;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
}

/* --- CSS Reset -------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

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

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

/* --- Utility Classes -------------------------------------- */
.text-muted {
  color: var(--color-text-muted);
}

.text-primary {
  color: var(--color-primary);
}

.text-success {
  color: var(--color-success);
}

.text-warning {
  color: var(--color-warning);
}

.text-danger {
  color: var(--color-danger);
}

.font-light   { font-weight: var(--font-weight-light); }
.font-normal  { font-weight: var(--font-weight-normal); }
.font-medium  { font-weight: var(--font-weight-medium); }
.font-semi    { font-weight: var(--font-weight-semi); }
.font-bold    { font-weight: var(--font-weight-bold); }
