/**
 * DESIGN SYSTEM - GRIS
 * Tokens e variáveis CSS centralizadas
 * Backoffice moderno e profissional
 */

:root {
  /* ===== COLORS ===== */
  
  /* Primary */
  --color-primary: #0d4d91;
  --color-primary-hover: #0b3d73;
  --color-primary-active: #093159;
  --color-primary-light: #e8f1f9;
  --color-primary-lighter: #f4f8fc;
  
  /* Secondary */
  --color-secondary: #6c757d;
  --color-secondary-hover: #5a6268;
  --color-secondary-active: #4e555b;
  --color-secondary-light: #e9ecef;
  
  /* Success */
  --color-success: #00d331;
  --color-success-hover: #00b829;
  --color-success-active: #009d23;
  --color-success-light: #dbffe3;
  --color-success-lighter: #f0fff3;
  
  /* Danger */
  --color-danger: #B52A2A;
  --color-danger-hover: #9a2424;
  --color-danger-active: #7f1e1e;
  --color-danger-light: #fff0f0;
  --color-danger-lighter: #fff8f8;
  
  /* Warning */
  --color-warning: #dfb600;
  --color-warning-hover: #c7a300;
  --color-warning-active: #af9000;
  --color-warning-light: #fff8dd;
  --color-warning-lighter: #fffcf0;
  
  /* Info */
  --color-info: #0dcaf0;
  --color-info-hover: #0bb5d6;
  --color-info-active: #099fbc;
  --color-info-light: #d1f4fb;
  --color-info-lighter: #f0fcff;
  
  /* Neutral */
  --color-neutral: #64748b;
  --color-neutral-hover: #556273;
  --color-neutral-active: #475569;
  --color-neutral-light: #f1f5f9;
  
  /* Purple (accent) */
  --color-purple: #6918ff;
  --color-purple-hover: #5814d9;
  --color-purple-light: #ede3fd;
  
  /* Dark */
  --color-dark: #1D2756;
  --color-dark-hover: #161f44;
  --color-dark-light: #e8eaf2;
  
  /* ===== BACKGROUNDS ===== */
  --bg-page: #f8f9fa;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;
  --bg-active: #e2e8f0;
  --bg-overlay: rgba(0, 0, 0, 0.5);
  --bg-overlay-light: rgba(0, 0, 0, 0.35);
  
  /* ===== TEXT COLORS ===== */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-disabled: #cbd5e1;
  --text-on-primary: #ffffff;
  --text-on-dark: #ffffff;
  
  /* ===== BORDERS ===== */
  --border-color: #e2e8f0;
  --border-color-hover: #cbd5e1;
  --border-color-active: #94a3b8;
  --border-width: 1px;
  
  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* ===== SHADOWS ===== */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Shadows específicas */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 4px 12px -2px rgba(13, 77, 145, 0.15), 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-button: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-dropdown: 0 12px 28px -8px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* ===== SPACING ===== */
  --space-xs: 0.25rem;    /* 4px */
  --space-sm: 0.5rem;     /* 8px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.5rem;     /* 24px */
  --space-xl: 2rem;       /* 32px */
  --space-2xl: 2.5rem;    /* 40px */
  --space-3xl: 3rem;      /* 48px */
  --space-4xl: 4rem;      /* 64px */
  
  /* ===== TYPOGRAPHY ===== */
  
  /* Font Families */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
  
  /* Font Sizes */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* Letter Spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;
  
  /* ===== TRANSITIONS ===== */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-slower: 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;
  
  /* ===== LAYOUT ===== */
  --container-max-width: 1400px;
  --sidebar-width: 240px;
  --topbar-height: 56px;
  --bottom-nav-height: 64px;
  
  /* ===== FORM ELEMENTS ===== */
  --input-height: 38px;
  --input-height-sm: 32px;
  --input-height-lg: 44px;
  --input-padding-x: 0.75rem;
  --input-padding-y: 0.5rem;
  --input-bg: #ffffff;
  --input-border: var(--border-color);
  --input-border-focus: var(--color-primary);
  --input-placeholder: var(--text-muted);
  
  /* ===== BUTTONS ===== */
  --btn-height: 38px;
  --btn-height-sm: 32px;
  --btn-height-lg: 44px;
  --btn-padding-x: 1rem;
  --btn-padding-y: 0.5rem;
  --btn-padding-x-sm: 0.75rem;
  --btn-padding-y-sm: 0.375rem;
  --btn-padding-x-lg: 1.5rem;
  --btn-padding-y-lg: 0.625rem;
  
  /* ===== ANIMATION ===== */
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== UTILITY CLASSES ===== */

/* Text utilities */
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--color-success) !important; }
.text-danger { color: var(--color-danger) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-info { color: var(--color-info) !important; }

/* Background utilities */
.bg-primary { background-color: var(--color-primary) !important; }
.bg-primary-light { background-color: var(--color-primary-light) !important; }
.bg-success-light { background-color: var(--color-success-light) !important; }
.bg-danger-light { background-color: var(--color-danger-light) !important; }
.bg-warning-light { background-color: var(--color-warning-light) !important; }
.bg-info-light { background-color: var(--color-info-light) !important; }

/* Shadow utilities */
.shadow-xs { box-shadow: var(--shadow-xs) !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-card { box-shadow: var(--shadow-card) !important; }

/* Border radius utilities */
.rounded-xs { border-radius: var(--radius-xs) !important; }
.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded-md { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

/* Transition utilities */
.transition-fast { transition: all var(--transition-fast) !important; }
.transition-base { transition: all var(--transition-base) !important; }
.transition-slow { transition: all var(--transition-slow) !important; }
