/**
 * ============================================
 * PAINEL SLORRENY - ESTILOS GLOBAIS
 * ============================================
 *
 * Arquivo: style.css
 * Descrição: Variáveis CSS, cores, tipografia e utilitários globais
 * Framework: Tailwind CSS + Custom Properties
 * Versão: 1.0.0
 * Atualizado: 2025-10-08
 */

/* ============================================
   1. VARIÁVEIS CSS (CSS Custom Properties)
   ============================================ */

:root {
    /* ============================================
       CORES TRÁFEGO & CLOUD - PALETA CENTRALIZADA
       Para mudar as cores do sistema, edite APENAS aqui!
       ============================================ */

    /* Cores Primárias - Azul Tráfego & Cloud */
    --color-primary: #27B3E7;        /* Azul principal */
    --color-primary-hover: #1E9ACC;  /* Azul hover */
    --color-primary-dark: #1785B3;   /* Azul escuro */
    --color-primary-light: #E0F4FC;  /* Azul claro (backgrounds) */

    /* Cores Secundárias - Teal */
    --color-secondary: #14B8A6;      /* Teal principal */
    --color-secondary-hover: #0D9488; /* Teal hover */
    --color-secondary-dark: #0F766E; /* Teal escuro */
    --color-secondary-light: #CCFBF1; /* Teal claro (backgrounds) */

    /* Cor de Destaque */
    --color-accent: #38B6E5;         /* Azul accent */
    --color-accent-hover: #27B3E7;   /* Azul accent hover */

    /* Gradiente Principal (usado em botões e destaques) */
    --gradient-primary: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    --gradient-primary-hover: linear-gradient(to right, var(--color-primary-hover), var(--color-secondary-hover));

    /* Cores Neutras */
    --color-dark: #1F2937;           /* gray-800 */
    --color-light: #F9FAFB;          /* gray-50 */
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-900: #111827;

    /* Cores de Status */
    --color-success: #10B981;        /* green-500 */
    --color-success-light: #D1FAE5;  /* green-100 */
    --color-success-dark: #065F46;   /* green-800 */

    --color-warning: #F59E0B;        /* amber-500 */
    --color-warning-light: #FEF3C7;  /* amber-100 */
    --color-warning-dark: #92400E;   /* amber-800 */

    --color-error: #EF4444;          /* red-500 */
    --color-error-light: #FEE2E2;    /* red-100 */
    --color-error-dark: #991B1B;     /* red-800 */

    --color-info: #3B82F6;           /* blue-500 */
    --color-info-light: #DBEAFE;     /* blue-100 */
    --color-info-dark: #1E3A8A;      /* blue-800 */

    /* Tipografia */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --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-size-4xl: 2.25rem;        /* 36px */

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Espaçamentos */
    --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 */

    /* Bordas e Sombras */
    --border-radius-sm: 0.375rem;    /* 6px */
    --border-radius-md: 0.5rem;      /* 8px */
    --border-radius-lg: 0.75rem;     /* 12px */
    --border-radius-xl: 1rem;        /* 16px */
    --border-radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --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);

    /* Transições */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-index */
    --z-index-dropdown: 1000;
    --z-index-sticky: 1020;
    --z-index-fixed: 1030;
    --z-index-modal-backdrop: 1040;
    --z-index-modal: 1050;
    --z-index-popover: 1060;
    --z-index-tooltip: 1070;
}

/* ============================================
   2. RESET E NORMALIZAÇÕES
   ============================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.5;
    color: var(--color-dark);
    background-color: var(--color-light);
    margin: 0;
    padding: 0;
}

/* ============================================
   3. TIPOGRAFIA GLOBAL
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: var(--color-dark);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin: 0 0 1rem 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: #ffffff;
}

.hover\:bg-gray-50:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
    color: #333333;
}

/* ============================================
   4. CLASSES UTILITÁRIAS
   ============================================ */

/* Espaçamentos */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--spacing-1) !important; }
.mt-2 { margin-top: var(--spacing-2) !important; }
.mt-3 { margin-top: var(--spacing-3) !important; }
.mt-4 { margin-top: var(--spacing-4) !important; }
.mt-6 { margin-top: var(--spacing-6) !important; }
.mt-8 { margin-top: var(--spacing-8) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--spacing-1) !important; }
.mb-2 { margin-bottom: var(--spacing-2) !important; }
.mb-3 { margin-bottom: var(--spacing-3) !important; }
.mb-4 { margin-bottom: var(--spacing-4) !important; }
.mb-6 { margin-bottom: var(--spacing-6) !important; }
.mb-8 { margin-bottom: var(--spacing-8) !important; }

/* Texto */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.text-primary { color: var(--color-primary) !important; }
.text-primary:hover { color: var(--color-primary-hover) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-secondary:hover { color: var(--color-secondary-hover) !important; }
.text-success { color: var(--color-success) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-error { color: var(--color-error) !important; }
.text-muted { color: var(--color-gray-500) !important; }

/* Links com cores da marca */
.link-primary {
    color: var(--color-primary) !important;
    transition: color var(--transition-fast);
}
.link-primary:hover {
    color: var(--color-secondary) !important;
}

.font-bold { font-weight: var(--font-weight-bold) !important; }
.font-semibold { font-weight: var(--font-weight-semibold) !important; }
.font-medium { font-weight: var(--font-weight-medium) !important; }
.font-normal { font-weight: var(--font-weight-normal) !important; }

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }

/* Flex */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.align-center { align-items: center !important; }

/* Backgrounds */
.bg-primary { background-color: var(--color-primary) !important; }
.bg-primary:hover, .hover\:bg-primary-hover:hover { background-color: var(--color-primary-hover) !important; }
.bg-success { background-color: var(--color-success) !important; }
.bg-warning { background-color: var(--color-warning) !important; }
.bg-error { background-color: var(--color-error) !important; }
.bg-light { background-color: var(--color-light) !important; }
.bg-white { background-color: #ffffff !important; }

/* Gradientes da Marca - Classes reutilizáveis */
.gradient-primary {
    background: var(--gradient-primary) !important;
}

.gradient-primary:hover {
    background: var(--gradient-primary-hover) !important;
}

/* Sombras */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* Bordas */
.rounded-sm { border-radius: var(--border-radius-sm) !important; }
.rounded-md { border-radius: var(--border-radius-md) !important; }
.rounded-lg { border-radius: var(--border-radius-lg) !important; }
.rounded-xl { border-radius: var(--border-radius-xl) !important; }
.rounded-full { border-radius: var(--border-radius-full) !important; }

.border-primary { border-color: var(--color-primary) !important; }
.border-secondary { border-color: var(--color-secondary) !important; }

/* ============================================
   5. ANIMAÇÕES E TRANSIÇÕES
   ============================================ */

.transition-all {
    transition: all var(--transition-base);
}

.transition-colors {
    transition: color var(--transition-base), background-color var(--transition-base), border-color var(--transition-base);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   6. RESPONSIVIDADE - BREAKPOINTS
   ============================================ */

/*
Mobile: até 640px
Tablet: 640px - 1024px
Desktop: 1024px+

Usar classes Tailwind para responsividade:
sm:  640px
md:  768px
lg:  1024px
xl:  1280px
2xl: 1536px
*/
