/* 
  SUPLILIST v3.0 - DESIGN SYSTEM 
  Define CSS Variables, Typography, and Core Tokens.
*/

:root {
  /* Cores Primárias */
  --brand-primary: #A78BFA;
  --brand-primary-hover: #C4B5FD;
  --brand-accent: #8B5CF6;
  --brand-green: #10B981;
  --brand-green-glow: rgba(16, 185, 129, 0.2);
  --brand-red: #EF4444;

  /* Neutras (Premium Dark) */
  --bg-darkest: #050505; /* Fundo base absoluto */
  --bg-dark: #0f0f13;    /* Fundo de cards/sidebar */
  --bg-darker: #18181b;  /* Hover/Inputs */
  
  /* Sincronização Canônica de Variáveis de Texto */
  --text-primary: var(--t1);
  --text-secondary: var(--t2);
  --text-inverse: #000000;
  
  /* Bordas */
  --border-color: #27272a;
  --border-light: rgba(255, 255, 255, 0.05);
  --border: var(--border-light);

  /* Status */
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;

  /* Espaçamento */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Tipografia */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --text-h1: 3rem; /* 48px */
  --text-h2: 2.25rem; /* 36px */
  --text-h3: 1.5rem; /* 24px */
  --text-body: 0.9375rem; /* 15px */
  --text-small: 0.8125rem; /* 13px */
  --text-tiny: 0.75rem;   /* 12px */

  /* Transições e Shadows */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(167, 139, 250, 0.15);
  --shadow-glow-strong: 0 0 30px rgba(167, 139, 250, 0.3);

  /* Dimensões Fixas (App Shell) */
  --sidebar-width: 260px;
  --sidebar-mini-width: 80px;
  --topbar-height: 72px;

  /* Sincronização Canônica de Variáveis de Texto e Fundo Padrão (Dark) */
  --bg-base: #050505;
  --bg-surface: #0f0f13;
  --bg-panel: #18181b;
  --t1: #f4f4f5;
  --t2: #a1a1aa;
  --t3: #71717a;
  --brand: #A78BFA;
  --brand-light: #C4B5FD;
  --brand-dark: #8B5CF6;
}

/* Reset Global (básico) e Setup de Tipografia */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Classes */
.h1 { font-size: var(--text-h1); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.h2 { font-size: var(--text-h2); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.h3 { font-size: var(--text-h3); font-weight: 600; line-height: 1.4; }
.text-body { font-size: var(--text-body); font-weight: 400; color: var(--text-secondary); }
.text-small { font-size: var(--text-small); font-weight: 400; color: var(--text-secondary); }
.text-tiny { font-size: var(--text-tiny); font-weight: 500; }
.text-gradient {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Utilitários Visuais Globais */
.card {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-small);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: var(--text-inverse);
}
.btn-primary:hover {
  background-color: var(--brand-primary-hover);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background-color: var(--bg-darker);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background-color: var(--border-color);
}

.btn-ghost {
  background-color: transparent;
  color: var(--brand-primary);
  padding: 0.5rem 1rem;
}
.btn-ghost:hover {
  background-color: rgba(167, 139, 250, 0.1);
}

/* Inputs */
.input-base {
  width: 100%;
  background-color: var(--bg-darker);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: var(--text-body);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.input-base:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.2);
}
.input-base::placeholder {
  color: var(--text-secondary);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: var(--text-tiny);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-success {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-primary {
  background-color: rgba(167, 139, 250, 0.15);
  color: var(--brand-primary);
  border: 1px solid rgba(167, 139, 250, 0.3);
}

/* Utilitários Extras */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
/* --- THEMES (Obsidian Edition Variable Calibration) --- */
html.dark {
  --bg-darkest: #050505;
  --bg-dark: #0f0f13;
  --bg-darker: #18181b;
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-inverse: #000000;
  --border-color: #27272a;
  --border-light: rgba(255, 255, 255, 0.05);
  --brand-primary: #a855f7;
  --brand-primary-hover: #c084fc;
  --brand-accent: #7e22ce;
  
  --bg-base: #050505;
  --bg-surface: #0f0f13;
  --bg-panel: #18181b;
  --t1: #f4f4f5;
  --t2: #a1a1aa;
  --t3: #71717a;
  --brand: #a855f7;
  --brand-light: #c084fc;
  --brand-dark: #7e22ce;
  --shadow-glow: 0 0 20px rgba(168, 85, 247, 0.15);
}

html.light {
  --bg-darkest: #f9fafb;
  --bg-dark: #ffffff;
  --bg-darker: #f3f4f6;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-inverse: #ffffff;
  --border-color: #e5e7eb;
  --border-light: rgba(0, 0, 0, 0.05);
  
  /* Contraste calibrado para fundo claro (Violeta Escuro) */
  --brand-primary: #6d28d9; 
  --brand-primary-hover: #7c3aed;
  --brand-accent: #4c1d95;
  --bg-base: #f9fafb;
  --bg-surface: #ffffff;
  --bg-panel: #f3f4f6;
  --t1: #111827;
  --t2: #4b5563;
  --t3: #9ca3af;
  --brand: #6d28d9;
  --brand-light: #7c3aed;
  --brand-dark: #4c1d95;
  --shadow-glow: 0 0 20px rgba(109, 40, 217, 0.08);
}

html.midnight {
  --bg-darkest: #090d16;
  --bg-dark: #0f172a;
  --bg-darker: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-inverse: #000000;
  --border-color: #334155;
  --border-light: rgba(255, 255, 255, 0.04);
  
  /* Azul Oceano */
  --brand-primary: #0ea5e9;
  --brand-primary-hover: #38bdf8;
  --brand-accent: #0284c7;
  --brand: #0ea5e9;
  --brand-light: #38bdf8;
  --brand-dark: #0284c7;
  
  --bg-base: #090d16;
  --bg-surface: #0f172a;
  --bg-panel: #1e293b;
  --t1: #f8fafc;
  --t2: #94a3b8;
  --t3: #64748b;
  --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.15);
}

html.neon {
  --bg-darkest: #07020d;
  --bg-dark: #120324;
  --bg-darker: #1a0b2e;
  --text-primary: #fdf4ff;
  --text-secondary: #e879f9;
  --text-inverse: #000000;
  --border-color: #4a044e;
  --border-light: rgba(217, 70, 239, 0.15);
  
  /* Cyberpunk Fuchsia */
  --brand-primary: #d946ef;
  --brand-primary-hover: #f0abfc;
  --brand-accent: #c026d3;
  --brand: #d946ef;
  --brand-light: #f0abfc;
  --brand-dark: #a21caf;
  
  --bg-base: #07020d;
  --bg-surface: #120324;
  --bg-panel: #1a0b2e;
  --t1: #fdf4ff;
  --t2: #e879f9;
  --t3: #c026d3;
  --shadow-glow: 0 0 20px rgba(217, 70, 239, 0.25);
}

/* --- NAV ITEM ACTIVE (Mint Green Obsidian Edition) --- */
.nav-item.active {
  background: #10B981 !important; /* Green/Teal */
  color: #050505 !important; /* Dark text */
  font-weight: 700 !important;
  border: 1px solid #10B981 !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
}
.nav-item.active .nav-icon {
  filter: brightness(0) saturate(100%) invert(0%) !important; /* Dark icon */
}
.nav-item.active .nav-badge {
  background: rgba(0, 0, 0, 0.15) !important;
  color: #050505 !important;
}
