/**
 * CSS Variables - Sistema di Temi PNP 2030
 * 
 * Questo file definisce le variabili CSS utilizzate in tutto il progetto.
 * Per cambiare tema, sovrascrivere queste variabili nel file tema specifico.
 * 
 * @author Studio MIT
 * @version 1.0.0
 */

:root {
    /* ========================================
       COLORI PRIMARI
       ======================================== */
    --color-primary: #2b4c81;
    --color-primary-light: #5890b6;
    --color-primary-dark: #1a2d4d;
    --color-secondary: #2483a2;
    --color-accent: #ffa633;
    --color-accent-light: #ffcc80;
    
    /* ========================================
       COLORI STATO RAG (Red-Amber-Green)
       ======================================== */
    --color-rag-green: #18a873;
    --color-rag-green-light: #e8f5f0;
    --color-rag-amber: #f2b705;
    --color-rag-amber-light: #fef9e7;
    --color-rag-red: #d52b2b;
    --color-rag-red-light: #fbeaea;
    
    /* ========================================
       COLORI UI
       ======================================== */
    --color-text: #1b1b1b;
    --color-text-muted: #6b7280;
    --color-text-light: #9ca3af;
    --color-background: #ffffff;
    --color-background-alt: #f8f9fa;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-strong: rgba(0, 0, 0, 0.15);
    
    /* ========================================
       COLORI SEMANTICI
       ======================================== */
    --color-success: #198754;
    --color-success-bg: #d1e7dd;
    --color-warning: #ffc107;
    --color-warning-bg: #fff3cd;
    --color-danger: #dc3545;
    --color-danger-bg: #f8d7da;
    --color-info: #0dcaf0;
    --color-info-bg: #cff4fc;
    
    /* ========================================
       COMPONENTI - CARD
       ======================================== */
    --card-header-bg: var(--color-primary-light);
    --card-header-color: #fcfcfc;
    --card-header-special-bg: var(--color-accent);
    --card-header-special-color: #000000;
    --card-border-radius: 0.375rem;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    
    /* ========================================
       COMPONENTI - NAVBAR
       ======================================== */
    --navbar-bg: var(--color-primary);
    --navbar-text: #ffffff;
    --navbar-text-hover: rgba(255, 255, 255, 0.8);
    --navbar-height: 56px;
    
    /* ========================================
       COMPONENTI - SIDEBAR
       ======================================== */
    --sidebar-bg: var(--color-background);
    --sidebar-border: var(--color-border);
    --sidebar-link-hover-bg: var(--color-background-alt);
    --sidebar-link-active-border: var(--color-primary);
    
    /* ========================================
       COMPONENTI - FORM
       ======================================== */
    --input-border: #ced4da;
    --input-focus-border: var(--color-primary);
    --input-focus-shadow: rgba(43, 76, 129, 0.25);
    --input-bg: var(--color-background);
    --input-disabled-bg: #e9ecef;
    
    /* ========================================
       COMPONENTI - TABELLE
       ======================================== */
    --table-header-bg: var(--color-background-alt);
    --table-border: #dee2e6;
    --table-stripe-bg: rgba(0, 0, 0, 0.02);
    --table-hover-bg: rgba(0, 0, 0, 0.04);
    
    /* ========================================
       TIPOGRAFIA
       ======================================== */
    --font-family: 'Poppins', sans-serif;
    --font-family-mono: 'Consolas', 'Monaco', monospace;
    --font-size-xs: 0.75rem;   /* 12px */
    --font-size-sm: 0.875rem;  /* 14px */
    --font-size-base: 1rem;    /* 16px */
    --font-size-lg: 1.125rem;  /* 18px */
    --font-size-xl: 1.25rem;   /* 20px */
    --font-size-2xl: 1.5rem;   /* 24px */
    --font-size-3xl: 1.875rem; /* 30px */
    
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    --line-height-tight: 1.15;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* ========================================
       SPAZIATURE
       ======================================== */
    --spacing-0: 0;
    --spacing-1: 0.25rem;  /* 4px */
    --spacing-2: 0.5rem;   /* 8px */
    --spacing-3: 0.75rem;  /* 12px */
    --spacing-4: 1rem;     /* 16px */
    --spacing-5: 1.25rem;  /* 20px */
    --spacing-6: 1.5rem;   /* 24px */
    --spacing-8: 2rem;     /* 32px */
    --spacing-10: 2.5rem;  /* 40px */
    --spacing-12: 3rem;    /* 48px */
    
    /* ========================================
       BORDI E RAGGI
       ======================================== */
    --border-width: 1px;
    --border-width-thick: 2px;
    --border-radius-sm: 0.25rem;
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 1rem;
    --border-radius-full: 9999px;
    
    /* ========================================
       OMBRE
       ======================================== */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* ========================================
       TRANSIZIONI
       ======================================== */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* ========================================
       Z-INDEX
       ======================================== */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    
    /* ========================================
       BREAKPOINTS (per riferimento JS)
       ======================================== */
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-xxl: 1400px;
}
