/* ============================================================
   NomAv · Estilos globales
   ------------------------------------------------------------
   UN solo juego de variables. Los .razor.css las usan; ninguno
   define colores de tema por su cuenta.
   El modo oscuro sólo cambia estas variables (data-theme en <html>,
   lo pone js/theme.js).
   ============================================================ */

:root {
    /* Marca (no cambian con el tema) */
    --azul-noelie: #002060;
    --azul-profundo: #00143D;
    --azul-medio: #003B95;
    --naranja-noelie: #FCA522;
    --rojo-noelie: #E5232E;
    --verde-noelie: #2F6B4F;

    /* Layout */
    --sidebar-width: 260px;

    /* Superficies y texto (cambian con el tema) */
    --bg-page: #F6F8FC;
    --bg-header: rgba(255, 255, 255, 0.96);
    --bg-card: #FFFFFF;
    --bg-control: #FFFFFF;
    --bg-hover: #EEF3FB;
    --gris-borde: #E5E9F0;
    --texto-principal: #101828;
    --texto-secundario: #667085;
    --texto-tenue: #98A2B3;
    --texto-marca: #002060;

    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg-page: #0E1726;
    --bg-header: rgba(21, 32, 51, 0.97);
    --bg-card: #152033;
    --bg-control: #1B2940;
    --bg-hover: #22324B;
    --gris-borde: #253248;
    --texto-principal: #F5F7FA;
    --texto-secundario: #A7B1C2;
    --texto-tenue: #7F8A9D;
    --texto-marca: #FFFFFF;

    color-scheme: dark;
}


/* ============================================================
   BASE
   ============================================================ */

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    background: var(--bg-page);
    color: var(--texto-principal);
}

#app {
    width: 100%;
    min-height: 100vh;
}

input,
button,
textarea,
select {
    font: inherit;
}


/* ============================================================
   PANTALLA DE ERROR DE BLAZOR
   ============================================================ */

#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
