/* ============================================================
   DESIGN TOKENS - Sistema di design unificato Gest
   Fonte unica per colori, spaziature, ombre, tipografia.
   Override via Personalizza Aspetto → applyBrandingStyles()
   ============================================================ */

:root {
  /* --- Brand (overrideabili dal branding) --- */
  --primary-green: #22c55e;
  --secondary-yellow: #ffc107;
  --accent-orange: #fd7e14;

  /* --- Semantici --- */
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* --- Superfici e testo --- */
  --light-bg: #f9fafb;
  --card-bg: #ffffff;
  --border-light: #e5e7eb;
  --dark-text: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;

  /* --- Layout --- */
  --sidebar-width: 250px;
  --sidebar-collapsed-width: 70px;
  --navbar-height: 56px;

  /* --- Border radius --- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --card-border-radius: var(--radius-md);

  /* --- Ombre --- */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);

  /* --- Transizioni --- */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* --- Tipografia --- */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-base: 14px;
  --line-height-base: 1.6;

  /* --- Alias compatibilità (dashboard-minimal, ordiniage, ecommerce) --- */
  --primary: var(--primary-green);
  --secondary: var(--secondary-yellow);
  --accent: var(--accent-orange);
  --text: var(--dark-text);
  --text-light: var(--text-secondary);
  --bg: var(--card-bg);
  --bg-light: var(--light-bg);
  --border: var(--border-light);

  /* --- Alias layout shell (load-navbar-sidebar.js) --- */
  --app-navbar-height: var(--navbar-height);
  --app-sidebar-width: var(--sidebar-width);
  --app-sidebar-collapsed-width: var(--sidebar-collapsed-width);
}
