/* site.css - GREEN THEME */
body {
    background: #f8faf8;
}

.navbar-brand img {
    border-radius: 0 !important;
}

.main-content {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.navbar-brand img {
    border-radius: 50%;
}

.nav-link {
    color: #fff !important;
    transition: color 0.2s;
}

    .nav-link:hover, .nav-link.active {
        color: #a5d6a7 !important;
        text-decoration: underline;
    }

.footer {
    background: #1b5e20;
    color: #c8e6c9;
}


/* --- Sekcja siatek centylowych --- */
.centyl-section {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: #fdfdfd;
    padding: 40px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    color: #333;
    line-height: 1.7;
}

/* Nag?�wek sekcji */
.centyl-title {
    color: #2e7d32;
    text-align: center;
    font-size: 1.9em;
    margin-bottom: 25px;
}

/* Blok informacyjny z interpretacj? centyla */
.centyl-info-box {
    background: #e8f5e9;
    border-left: 6px solid #2e7d32;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 25px 0;
    transition: all 0.3s ease-in-out;
}

    .centyl-info-box:hover {
        background: #c8e6c9;
        transform: translateY(-2px);
    }

/* Link "wi?cej informacji" */
.centyl-link {
    font-weight: bold;
    font-size: 1.05em;
    margin-top: 25px;
    text-align: center;
}

    .centyl-link a {
        color: #2e7d32;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .centyl-link a:hover {
            color: #1b5e20;
            text-decoration: underline;
        }


.gsi-material-button {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-appearance: none;
    background-color: WHITE;
    background-image: none;
    border: 1px solid #747775;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #1f1f1f;
    cursor: pointer;
    font-family: 'Roboto', arial, sans-serif;
    font-size: 20px;
    height: 5rem;
    letter-spacing: 0.25px;
    outline: none;
    overflow: hidden;
    padding: 0 12px;
    position: relative;
    text-align: center;
    -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
    transition: background-color .218s, border-color .218s, box-shadow .218s;
    vertical-align: middle;
    white-space: nowrap;
    width: auto;
    max-width: 400px;
    min-width: min-content;
}

    .gsi-material-button .gsi-material-button-icon {
        height: 30px;
        margin-right: 12px;
        min-width: 20px;
        width: 30px;
    }

    .gsi-material-button .gsi-material-button-content-wrapper {
        -webkit-align-items: center;
        align-items: center;
        display: flex;
        -webkit-flex-direction: row;
        flex-direction: row;
        -webkit-flex-wrap: nowrap;
        flex-wrap: nowrap;
        height: 100%;
        justify-content: space-between;
        position: relative;
        width: 100%;
    }

    .gsi-material-button .gsi-material-button-contents {
        -webkit-flex-grow: 1;
        flex-grow: 1;
        font-family: 'Roboto', arial, sans-serif;
        font-weight: 500;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: top;
    }

    .gsi-material-button .gsi-material-button-state {
        -webkit-transition: opacity .218s;
        transition: opacity .218s;
        bottom: 0;
        left: 0;
        opacity: 0;
        position: absolute;
        right: 0;
        top: 0;
    }

    .gsi-material-button:disabled {
        cursor: default;
        background-color: #ffffff61;
        border-color: #1f1f1f1f;
    }

        .gsi-material-button:disabled .gsi-material-button-contents {
            opacity: 38%;
        }

        .gsi-material-button:disabled .gsi-material-button-icon {
            opacity: 38%;
        }

    .gsi-material-button:not(:disabled):active .gsi-material-button-state,
    .gsi-material-button:not(:disabled):focus .gsi-material-button-state {
        background-color: #303030;
        opacity: 12%;
    }

    .gsi-material-button:not(:disabled):hover {
        -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
        box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
    }

        .gsi-material-button:not(:disabled):hover .gsi-material-button-state {
            background-color: #303030;
            opacity: 8%;
        }

/* Background for logged-in users - Green Theme */
body.user-auth {
    background-color: #e8f5e9;
}

/* Optional: keep anonymous background unchanged */
body.user-anon {
    background-color: #ffffff;
}

/* Form validation */
.input-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.field-error {
    color: #dc3545;
    font-size: 0.85rem;
}
