/* ==========================================================================
   Nextcloud 34 Solid Green Background & Pure White Button Fix
   ========================================================================== */

:root {
    /* Set Nextcloud layout engines to use your green background */
    --color-main-background: #A2C74A !important;    
    --color-background-plain: #A2C74A !important;

    /* Re-route primary color tokens from blue to white */
    --color-primary: #ffffff !important;
    --color-primary-element: #ffffff !important;
    --color-primary-text: #333333 !important;
--color-primary-element-text: #333333 !important;
}

/* 1. FORCE CORE GREEN BACKGROUND (Removes default shapes/gradients) */
body, #body-user, #body-settings, #content, #body-public, .page {
    background-color: #A2C74A !important;
    background-image: none !important;
}

/* 2. FORCE BLUE BUTTONS TO WHITE (Targets standard styling blocks) */
button.primary, 
.button.primary, 
input[type="submit"].primary, 
.primary-button,
[type="button"].primary {
    background-color: #ffffff !important;
    color: #333333 !important;
    background-image: none !important;
    border: 1px solid #cccccc !important;
}

/* 3. SHADOW DOM BYPASS (Forces modern Nextcloud 34 components out of blue) */
nc-button[type="primary"], 
NcButton[type="primary"],
.nc-button--primary {
    --color-primary: #ffffff !important;
    --color-primary-text: #333333 !important;
    background-color: #ffffff !important;
    color: #333333 !important;
}

/* 4. BUTTON HOVER EFFECT */
button.primary:hover, 
.button.primary:hover, 
input[type="submit"].primary:hover,
nc-button[type="primary"]:hover {
    background-color: #ededed !important;
    color: #000000 !important;
}