/* --- UniWattAI Account: GOOGLE STYLE (COPIED FROM ADMIN) --- */

/* 1. FORCE HEADER WHITE (Targeting all versions of PatternFly) */
header,
.pf-c-masthead,
.pf-c-page__header,
.pf-c-masthead.pf-m-dark,
.pf-v5-c-masthead,            /* Targets newer Keycloak versions */
.pf-v5-c-masthead.pf-m-dark {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    --pf-c-masthead--BackgroundColor: #ffffff !important;
    --pf-v5-c-masthead--BackgroundColor: #ffffff !important;
    
    /* Force text color variables to Black */
    --pf-c-masthead--Color: #000000 !important;
    --pf-v5-c-masthead--Color: #000000 !important;
    --pf-v5-global--Color--100: #000000 !important;
    --pf-v5-global--Color--200: #000000 !important;
    color: #000000 !important;
}

/* 2. FORCE INNER CONTAINERS TRANSPARENT */
.pf-c-masthead__main,
.pf-c-masthead__content,
.pf-v5-c-masthead__main,
.pf-v5-c-masthead__content {
    background: transparent !important;
    background-color: transparent !important;
}

/* 3. FIX TEXT & ICONS (Aggressive Override - Pure Black) */
.pf-c-masthead *,
.pf-v5-c-masthead * {
    color: #000000 !important;
    fill: #000000 !important; /* For SVGs */
}

/* Buttons and dropdowns in the header. Only there: unscoped, this turned the label of every
   primary button in the page black on blue. */
.pf-c-masthead .pf-c-button,
.pf-v5-c-masthead .pf-v5-c-button,
.pf-c-masthead .pf-c-dropdown__toggle,
.pf-v5-c-masthead .pf-v5-c-dropdown__toggle {
    color: #000000 !important;
}

/* 4. GOOGLE STRIPE (Top Border) */
body {
    border-top: 5px solid #4285F4 !important;
    border-image: linear-gradient(to right, #4285F4 25%, #EA4335 25% 50%, #FBBC05 50% 75%, #34A853 75%) 1 !important;
    font-family: 'Roboto', 'Inter', sans-serif !important;
}

/* 5. UniWattAI logo in the header (theme.properties: logo=). The parent draws it 35px high, too
   small for the word mark under the symbol; 56px still fits the header. Selected by file name, not
   by PatternFly class, so that it survives PatternFly upgrades. */
img[src$="/img/logo_uniwattai.png"] {
    height: 56px !important;
    width: auto !important;
}
