/* ===================================================================
   FluxoMed - Paleta de Temas Compartilhada
   Aplica-se a Control, Finance e FluxoSST.
   Cada tema redefine apenas variaveis CSS (--primary-*, --sidebar-*,
   --theme-*) - o resto do CSS de cada base usa essas vars e se ajusta
   automaticamente.

   Os temas 'blue' (default :root) e 'dark' (.theme-dark) NAO sao
   redefinidos aqui - eles permanecem no CSS inline de cada base para
   manter compatibilidade total com regras especificas existentes.
   =================================================================== */

/* PRETO - Tema escuro */
html.theme-dark {
    --primary-50: #f8fafc;
    --primary-100: #f1f5f9;
    --primary-200: #e2e8f0;
    --primary-300: #cbd5e1;
    --primary-400: #94a3b8;
    --primary-500: #64748b;
    --primary-600: #475569;
    --primary-700: #1e293b;
    --primary-800: #0f172a;
    --primary-900: #020617;
    --sidebar-dark: #000000;
    --sidebar-darker: #000000;
    --sidebar-light: #0f0f0f;
    --theme-gradient-from: #000000;
    --theme-gradient-via: #050505;
    --theme-gradient-to: #0a0a0a;
    --theme-accent: #38bdf8;
    --theme-name: 'Preto';
}

/* AZUL FINANCE - Sky/blue (identidade original Finance) */
html.theme-finance-blue {
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-300: #7dd3fc;
    --primary-400: #38bdf8;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --primary-900: #0c4a6e;
    --sidebar-dark: #2563eb;
    --sidebar-darker: #1d4ed8;
    --sidebar-light: #1e40af;
    --theme-gradient-from: #0c4a6e;
    --theme-gradient-via: #0369a1;
    --theme-gradient-to: #0284c7;
    --theme-accent: #38bdf8;
    --theme-name: 'Azul Finance';
}

/* INDIGO PROFUNDO - Azul indigo escuro (identidade original Control) */
html.theme-indigo {
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-300: #a5b4fc;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #1e1b8a;
    --primary-800: #0a0a5c;
    --primary-900: #050530;
    --sidebar-dark: #0a0a5c;
    --sidebar-darker: #050530;
    --sidebar-light: #1e1b8a;
    --theme-gradient-from: #050530;
    --theme-gradient-via: #0a0a5c;
    --theme-gradient-to: #1e1b8a;
    --theme-accent: #fbbf24;
    --theme-name: 'Indigo Profundo';
}

/* OCEANO - Azul/teal vibrante */
html.theme-ocean {
    --primary-50: #ecfeff;
    --primary-100: #cffafe;
    --primary-200: #a5f3fc;
    --primary-300: #67e8f9;
    --primary-400: #22d3ee;
    --primary-500: #06b6d4;
    --primary-600: #0891b2;
    --primary-700: #0e7490;
    --primary-800: #155e75;
    --primary-900: #164e63;
    --sidebar-dark: #0e7490;
    --sidebar-darker: #155e75;
    --sidebar-light: #0891b2;
    --theme-gradient-from: #155e75;
    --theme-gradient-via: #0891b2;
    --theme-gradient-to: #06b6d4;
    --theme-accent: #fbbf24;
    --theme-name: 'Oceano';
}

/* FLORESTA - Verde profundo */
html.theme-emerald {
    --primary-50: #ecfdf5;
    --primary-100: #d1fae5;
    --primary-200: #a7f3d0;
    --primary-300: #6ee7b7;
    --primary-400: #34d399;
    --primary-500: #10b981;
    --primary-600: #059669;
    --primary-700: #047857;
    --primary-800: #065f46;
    --primary-900: #064e3b;
    --sidebar-dark: #064e3b;
    --sidebar-darker: #022c22;
    --sidebar-light: #065f46;
    --theme-gradient-from: #064e3b;
    --theme-gradient-via: #065f46;
    --theme-gradient-to: #047857;
    --theme-accent: #fbbf24;
    --theme-name: 'Floresta';
}

/* AMETISTA - Roxo/violeta */
html.theme-purple {
    --primary-50: #f5f3ff;
    --primary-100: #ede9fe;
    --primary-200: #ddd6fe;
    --primary-300: #c4b5fd;
    --primary-400: #a78bfa;
    --primary-500: #8b5cf6;
    --primary-600: #7c3aed;
    --primary-700: #6d28d9;
    --primary-800: #5b21b6;
    --primary-900: #4c1d95;
    --sidebar-dark: #4c1d95;
    --sidebar-darker: #2e1065;
    --sidebar-light: #5b21b6;
    --theme-gradient-from: #2e1065;
    --theme-gradient-via: #5b21b6;
    --theme-gradient-to: #7c3aed;
    --theme-accent: #f59e0b;
    --theme-name: 'Ametista';
}

/* CORAL - Rosa/coral suave */
html.theme-rose {
    --primary-50: #fff1f2;
    --primary-100: #ffe4e6;
    --primary-200: #fecdd3;
    --primary-300: #fda4af;
    --primary-400: #fb7185;
    --primary-500: #f43f5e;
    --primary-600: #e11d48;
    --primary-700: #be123c;
    --primary-800: #9f1239;
    --primary-900: #881337;
    --sidebar-dark: #881337;
    --sidebar-darker: #4c0519;
    --sidebar-light: #9f1239;
    --theme-gradient-from: #4c0519;
    --theme-gradient-via: #9f1239;
    --theme-gradient-to: #be123c;
    --theme-accent: #fcd34d;
    --theme-name: 'Coral';
}

/* AMBAR - Dourado/laranja quente */
html.theme-amber {
    --primary-50: #fffbeb;
    --primary-100: #fef3c7;
    --primary-200: #fde68a;
    --primary-300: #fcd34d;
    --primary-400: #fbbf24;
    --primary-500: #f59e0b;
    --primary-600: #d97706;
    --primary-700: #b45309;
    --primary-800: #92400e;
    --primary-900: #78350f;
    --sidebar-dark: #78350f;
    --sidebar-darker: #451a03;
    --sidebar-light: #92400e;
    --theme-gradient-from: #451a03;
    --theme-gradient-via: #92400e;
    --theme-gradient-to: #b45309;
    --theme-accent: #ffffff;
    --theme-name: 'Ambar';
}

/* GRAFITE - Cinza moderno */
html.theme-slate {
    --primary-50: #f8fafc;
    --primary-100: #f1f5f9;
    --primary-200: #e2e8f0;
    --primary-300: #cbd5e1;
    --primary-400: #94a3b8;
    --primary-500: #64748b;
    --primary-600: #475569;
    --primary-700: #334155;
    --primary-800: #1e293b;
    --primary-900: #0f172a;
    --sidebar-dark: #1e293b;
    --sidebar-darker: #0f172a;
    --sidebar-light: #334155;
    --theme-gradient-from: #0f172a;
    --theme-gradient-via: #1e293b;
    --theme-gradient-to: #334155;
    --theme-accent: #38bdf8;
    --theme-name: 'Grafite';
}

/* BORDOX - Vinho profundo */
html.theme-bordeaux {
    --primary-50: #fef2f2;
    --primary-100: #fee2e2;
    --primary-200: #fecaca;
    --primary-300: #fca5a5;
    --primary-400: #f87171;
    --primary-500: #ef4444;
    --primary-600: #dc2626;
    --primary-700: #b91c1c;
    --primary-800: #991b1b;
    --primary-900: #7f1d1d;
    --sidebar-dark: #7f1d1d;
    --sidebar-darker: #450a0a;
    --sidebar-light: #991b1b;
    --theme-gradient-from: #450a0a;
    --theme-gradient-via: #7f1d1d;
    --theme-gradient-to: #991b1b;
    --theme-accent: #fcd34d;
    --theme-name: 'Bordo';
}
