/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/CascadeStyleSheet.css to edit this template
*/
/* 
    Created on : 25 de ago. de 2023, 10:28:24
    Author     : grkruger <grkruger@kraken>
*/

:root {
    --md-source: #504a78;
    /* primary */
    --md-ref-palette-primary0: #000000;
    --md-ref-palette-primary10: #1B1540;
    --md-ref-palette-primary20: #302A56;
    --md-ref-palette-primary25: #3C3662;
    --md-ref-palette-primary30: #47416E;
    --md-ref-palette-primary35: #534D7A;
    --md-ref-palette-primary40: #5F5987;
    --md-ref-palette-primary50: #7871A2;
    --md-ref-palette-primary60: #928BBD;
    --md-ref-palette-primary70: #ADA5D9;
    --md-ref-palette-primary80: #C8C0F5;
    --md-ref-palette-primary90: #E5DEFF;
    --md-ref-palette-primary95: #F4EEFF;
    --md-ref-palette-primary98: #FDF8FF;
    --md-ref-palette-primary99: #FFFBFF;
    --md-ref-palette-primary100: #FFFFFF;
    /* secondary */
    --md-ref-palette-secondary0: #000000;
    --md-ref-palette-secondary10: #191E00;
    --md-ref-palette-secondary20: #2D3400;
    --md-ref-palette-secondary25: #383F09;
    --md-ref-palette-secondary30: #434B14;
    --md-ref-palette-secondary35: #4F571F;
    --md-ref-palette-secondary40: #5B632A;
    --md-ref-palette-secondary50: #737C40;
    --md-ref-palette-secondary60: #8D9657;
    --md-ref-palette-secondary70: #A8B16F;
    --md-ref-palette-secondary80: #C3CC88;
    --md-ref-palette-secondary90: #DFE8A2;
    --md-ref-palette-secondary95: #EEF7AF;
    --md-ref-palette-secondary98: #F7FFBD;
    --md-ref-palette-secondary99: #FCFFDB;
    --md-ref-palette-secondary100: #FFFFFF;
    /* tertiary */
    --md-ref-palette-tertiary0: #000000;
    --md-ref-palette-tertiary10: #29161E;
    --md-ref-palette-tertiary20: #402A33;
    --md-ref-palette-tertiary25: #4C353E;
    --md-ref-palette-tertiary30: #58404A;
    --md-ref-palette-tertiary35: #654B55;
    --md-ref-palette-tertiary40: #715761;
    --md-ref-palette-tertiary50: #8C6F7A;
    --md-ref-palette-tertiary60: #A78994;
    --md-ref-palette-tertiary70: #C3A3AE;
    --md-ref-palette-tertiary80: #DFBECA;
    --md-ref-palette-tertiary90: #FCD9E6;
    --md-ref-palette-tertiary95: #FFECF1;
    --md-ref-palette-tertiary98: #FFF8F8;
    --md-ref-palette-tertiary99: #FFFBFF;
    --md-ref-palette-tertiary100: #FFFFFF;
    /* neutral */
    --md-ref-palette-neutral0: #000000;
    --md-ref-palette-neutral10: #1C1B1D;
    --md-ref-palette-neutral20: #313032;
    --md-ref-palette-neutral25: #3C3B3D;
    --md-ref-palette-neutral30: #484648;
    --md-ref-palette-neutral35: #545254;
    --md-ref-palette-neutral40: #605E60;
    --md-ref-palette-neutral50: #797679;
    --md-ref-palette-neutral60: #939092;
    --md-ref-palette-neutral70: #ADAAAD;
    --md-ref-palette-neutral80: #C9C5C8;
    --md-ref-palette-neutral90: #E5E1E4;
    --md-ref-palette-neutral95: #F4EFF2;
    --md-ref-palette-neutral98: #FDF8FB;
    --md-ref-palette-neutral99: #FFFBFF;
    --md-ref-palette-neutral100: #ffffff;
    /* neutral-variant */
    --md-ref-palette-neutral-variant0: #000000;
    --md-ref-palette-neutral-variant10: #1C1B20;
    --md-ref-palette-neutral-variant20: #313035;
    --md-ref-palette-neutral-variant25: #3C3B40;
    --md-ref-palette-neutral-variant30: #48464B;
    --md-ref-palette-neutral-variant35: #535157;
    --md-ref-palette-neutral-variant40: #605D63;
    --md-ref-palette-neutral-variant50: #79767C;
    --md-ref-palette-neutral-variant60: #938F95;
    --md-ref-palette-neutral-variant70: #ADAAB0;
    --md-ref-palette-neutral-variant80: #C9C5CB;
    --md-ref-palette-neutral-variant90: #E5E1E7;
    --md-ref-palette-neutral-variant95: #F4EFF6;
    --md-ref-palette-neutral-variant98: #FDF8FE;
    --md-ref-palette-neutral-variant99: #FFFBFF;
    --md-ref-palette-neutral-variant100: #ffffff;
    /* error */
    --md-ref-palette-error0: #000000;
    --md-ref-palette-error10: #410002;
    --md-ref-palette-error20: #690005;
    --md-ref-palette-error25: #7e0007;
    --md-ref-palette-error30: #93000a;
    --md-ref-palette-error35: #a80710;
    --md-ref-palette-error40: #ba1a1a;
    --md-ref-palette-error50: #de3730;
    --md-ref-palette-error60: #ff5449;
    --md-ref-palette-error70: #ff897d;
    --md-ref-palette-error80: #ffb4ab;
    --md-ref-palette-error90: #ffdad6;
    --md-ref-palette-error95: #ffedea;
    --md-ref-palette-error98: #fff8f7;
    --md-ref-palette-error99: #fffbff;
    --md-ref-palette-error100: #ffffff;

    /*TEMA CLARO*/
    
    --md-sys-color-primary: #504a78;
    --md-sys-color-primary-rgb: 80 74 120;
    --md-sys-color-primary-opacity: rgb(var(--md-sys-color-primary-rgb) / 0.33);
    --md-sys-color-primary-hover-opacity: rgb(var(--md-sys-color-primary-rgb) / 0.33);
    --md-sys-color-primary-light: rgb(var(--md-sys-color-primary-rgb) / 0.66);
    --md-sys-color-on-primary-hover-opacity: rgb(var(--md-sys-color-on-primary-container-rgb) / 0.08);
    --md-sys-color-on-primary: #ffffff;
    
    --md-sys-color-primary-container: #756f9f;
    --md-sys-color-primary-container-light: #f5f4f8;
    --md-sys-color-primary-container-rgb: 117 111 159;
    --md-sys-color-on-primary-container: #ffffff;
    --md-sys-color-on-primary-container-rgb: 59 9 0;
    --md-sys-color-primary-layer-hover: rgb(var(--md-sys-color-on-primary-container-rgb) / 0.08);
    --md-sys-color-primary-container-light-hover: #ebe9f2;
    --md-sys-color-primary-container-border: #d6d4e0;
    --md-sys-color-on-primary-container-light: #1D192B;
    
    --md-sys-color-secondary: #5b632a;
    --md-sys-color-secondary-rgb: 91 99 42;
    --md-sys-color-secondary-hover-opacity: rgb(var(--md-sys-color-secondary-rgb) / 0.33);
    --md-sys-color-secondary-variant-1: var(--md-ref-palette-secondary30);
    --md-sys-color-secondary-variant-2: var(--md-ref-palette-secondary20);
    --md-sys-color-secondary-variant-3: var(--md-ref-palette-secondary60);
    --md-sys-color-secondary-light: rgb(var(--md-sys-color-secondary-rgb) / 0.50);
    --md-sys-color-on-secondary: #ffffff;
    
    --md-sys-color-secondary-container: #b7c07d;
    --md-sys-color-secondary-container-rgb: 183 192 125;
    --md-sys-color-secondary-container-hover-opacity: rgb(var(--md-sys-color-secondary-container-rgb) / 0.33);
    --md-sys-color-on-secondary-container: #2a3100;
    
    --md-sys-color-tertiary: #715761;
    --md-sys-color-tertiary-rgb: 113 87 97;
    --md-sys-color-tertiary-variant-1: var(--md-ref-palette-tertiary30);
    --md-sys-color-tertiary-variant-2: var(--md-ref-palette-tertiary20);
    --md-sys-color-on-tertiary: #ffffff;
    --md-sys-color-tertiary-container: #b495a1;
    --md-sys-color-tertiary-container-rgb: 180 149 161;
    --md-sys-color-on-tertiary-container: #1c0a12;
    
    --md-sys-color-alert: #ff8f00;
    --md-sys-color-alert-rgb: 255 143 0;
    --md-sys-color-alert-hover-opacity: rgb(var(--md-sys-color-alert-rgb) / 0.33);
    
    --md-sys-color-success: #008000;
    --md-sys-color-success-rgb: 0 128 0;
    --md-sys-color-success-light: rgb(var(--md-sys-color-success-rgb) / 0.50);
    --md-sys-color-success-opacity: rgb(var(--md-sys-color-success-rgb) / 0.20);
    --md-sys-color-on-success: #ffffff;
    
    --md-sys-color-ok: #3d5afe;
    --md-sys-color-ok-rgb: 61 90 254;
    --md-sys-color-ok-hover-opacity: rgb(var(--md-sys-color-ok-rgb) / 0.33);
    
    --md-sys-color-cold: #03A9F4;
    --md-sys-color-cold-rgb: 3 169 244;
    --md-sys-color-cold-hover-opacity: rgb(var(--md-sys-color-cold-rgb) / 0.33);
    
    --md-sys-color-error: #DE3730;
    --md-sys-color-error-rgb: 222 55 48;
    --md-sys-color-error-light: rgb(var(--md-sys-color-error-rgb) / 0.50);
    --md-sys-color-on-error: #ffffff;
    --md-sys-color-error-opacity: rgb(var(--md-sys-color-error-rgb) / 0.10);
    --md-sys-color-error-hover-opacity: rgb(var(--md-sys-color-error-rgb) / 0.33);
    --md-sys-color-error-container: #ffdad6;
    --md-sys-color-on-error-container: #410002;
    
    --md-sys-color-background: #fdf8fc;
    --md-sys-color-on-background: #1c1b1e;
    
    --md-sys-color-surface: #f8f8fd;
    --md-sys-color-on-surface: #1c1b1e;
    --md-sys-color-on-surface-rgb: 28 27 30;
    --md-sys-color-on-surface-highlight: rgb(var(--md-sys-color-on-surface-rgb) / 0.04);
    --md-sys-color-on-surface-hover-opacity: rgb(var(--md-sys-color-on-surface-rgb) / 0.08);
    
    --md-sys-color-surface-variant: #f7f2f7;
    --md-sys-color-surface-variant-1: rgb(238 236 241);
    --md-sys-color-surface-variant-2: rgb(var(--md-sys-color-secondary-rgb) / 0.08);
    --md-sys-color-surface-variant-3: rgb(var(--md-sys-color-secondary-rgb) / 0.011);
    --md-sys-color-surface-variant-4: rgb(var(--md-sys-color-secondary-rgb) / 0.012);
    --md-sys-color-surface-variant-5: rgb(var(--md-sys-color-secondary-rgb) / 0.014);
    --md-sys-color-on-surface-variant: #48464e;
    --md-sys-color-container-low: var(--md-ref-palette-neutral-variant95);
    --md-sys-color-surface-container-high: var(--md-ref-palette-neutral90);
    
    --md-sys-color-outline: #79767f;
    --md-sys-color-inverse-surface: #313033;
    --md-sys-color-inverse-on-surface: #f4eff4;
    --md-sys-color-inverse-primary: #c8c0f5;
    --md-sys-color-shadow: #000000;
    --md-sys-color-outline-variant: #c9c5cf;
    --md-sys-color-outline-variant-2: rgb(var(--md-sys-color-primary-rgb) / 0.12);
    --md-sys-color-outline-variant-3: rgb(var(--md-sys-color-secondary-rgb) / 0.14);
    --md-sys-color-outline-variant-4: rgb(var(--md-sys-color-secondary-rgb) / 0.18);
    --md-sys-color-outline-variant-5: rgb(var(--md-sys-color-secondary-rgb) / 0.22);
    --md-sys-color-scrim: #000000;
    --md-sys-color-scrim-rgb: 0 0 0;
    --md-sys-color-scrim-overlay: rgb(var(--md-sys-color-scrim-rgb) / 0.2);

    --md-sys-color-disabled: rgb(221, 221, 221);
    --md-sys-color-inactive: #49454F; /* O cinza das abas inativas */
    --md-sys-color-disabled-hover: rgb(170 170 170 / 0.2);
    --md-sys-color-on-disabled: rgb(136, 136, 136);
    
}

/* Cores estendidas (fora do esquema MD3 base) */
:root {
    --md-ext-color-success: #2E7D32;
    --md-ext-color-success-rgb: 46 125 50;
    --md-ext-color-warning: #EA580C;
    --md-ext-color-warning-rgb: 234 88 12;
    /* Texto sobre fundos de aviso (laranja claro). Contraste mínimo de 4,5:1 (WCAG AA) */
    --md-ext-color-on-warning-container: #9A3412;
    /* Texto sobre fundos de sucesso (verde claro). Contraste mínimo de 4,5:1 (WCAG AA) */
    --md-ext-color-on-success-container: #1B5E20;
    --md-ext-color-meta-container: #E3F2FD;
    --md-ext-color-on-meta-container: #0D47A1;
    /* Fundo do rótulo flutuante dos campos (.input-container). Cada superfície com campos redefine
       com a sua cor de fundo opaca (ver .input-container label no app.css) */
    --md-ext-field-label-background: var(--md-sys-color-surface);
}

/* Cor da marca Meta (botão de login e identificação visual) */
:root {
    --md-ext-color-meta: #0468FF;
    --md-ext-color-on-meta: #ffffff;
}
