.button {
    all: unset;
    color: var(--theme-on-blue, var(--theme-on-accent, white));
    background-color: var(--wenbun-blue);
    border-radius: 0.5em;
    font-size: 0.9em;
    padding: 0.5em 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    &.danger-button {
        background-color: var(--wenbun-red);
        color: var(--theme-on-red, var(--theme-on-accent, white));
    }
    &.invert {
        border: var(--wenbun-blue) solid 1px;
        background-color: var(--theme-inverted-button-surface, var(--theme-surface, #FFFFFF90));
        color: var(--wenbun-blue);
        &:hover {
            background-color: var(--theme-inverted-button-hover-surface, var(--theme-surface-alt, lightgray));
        }
    }
    &:hover {
        opacity: 0.8;
    }
    &.disabled,
    &:disabled {
        background-color: gray !important;
        pointer-events: none;
    }
}

input:invalid,
input.invalid {
    background-color: var(--wenbun-red);
    color: var(--theme-invalid-input-text, var(--theme-on-red, var(--theme-on-accent, white)));
}