/* buttons.css */

/* Base styles shared by all action buttons */
.btn-action-blue,
.btn-action-gray,
.btn-action-green,
.btn-action-red {
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    border-radius: 0.3rem;
    cursor: pointer;
    text-transform: none !important;
    font-size: 1rem;
    line-height: 1.15;
    padding: 0.7rem 1.15rem;
    transition: box-shadow .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease;
}

.btn-action-blue>*,
.btn-action-gray>*,
.btn-action-green>*,
.btn-action-red>* {
    text-transform: none !important;
}

/* Disabled state */
.btn-action-blue[disabled],
.btn-action-green[disabled],
.btn-action-red[disabled] {
    background: linear-gradient(to bottom right, #e9e8e8, #bbbbbb);
    border: 1px solid #aba0a0 !important;
    color: #3f3f3f !important;
}

/* --- btn-action-blue --- */
.btn-action-blue {
    color: #ffffff;
    background: linear-gradient(to bottom right, #125d9d, #023d7b);
    border: 1px solid #065395;
}

.btn-action-blue:hover,
.btn-action-blue:focus,
.btn-action-blue:focus-visible {
    background: linear-gradient(to bottom right, #1966aa, #023d7b);
    box-shadow: 0 0 6px 1px rgba(129, 129, 129, 0.28) !important;
    border: 1px solid #025ba2;
    color: #ffffff !important;
}

.btn-action-blue:active,
.btn-action-blue.active,
.btn-action-blue:focus:active,
.btn-action-blue:not(:disabled):not(.disabled):active {
    background-color: #1a3c88 !important;
    box-shadow: 0 0 6px 2px rgb(0, 73, 146, 0.35) inset, 0 0 6px 1px rgb(129, 129, 129, 0.35) !important;
    border: 1px solid #025ba2;
    color: #ffffff !important;
}

/* --- btn-action-gray --- */
.btn-action-gray {
    color: #525252;
    background: linear-gradient(to bottom, #ffffff, #eeeeee);
    border: 1px solid #cdcdcd;
}

.btn-action-gray:hover,
.btn-action-gray:focus,
.btn-action-gray:focus-visible {
    background: linear-gradient(to bottom, #ffffff, #eeeeee);
    box-shadow: 0 0 6px 1px rgba(129, 129, 129, 0.28) !important;
    border: 1px solid #cdcdcd;
    color: #000 !important;
}

/* New gray action active state */
.btn-action-gray:active,
.btn-action-gray.active,
.btn-action-gray:focus:active,
.btn-action-gray:not(:disabled):not(.disabled):active {
    background-color: #e0e0e0 !important;
    box-shadow: 0 0 6px 2px rgb(129, 129, 129, 0.35) inset, 0 0 6px 1px rgb(129, 129, 129, 0.35) !important;
    color: #333 !important;
}

/* --- btn-action-red --- */
.btn-action-red {
    color: #ffffff;
    background: linear-gradient(to bottom right, #d32f2f, #b71c1c);
    border: 1px solid #b71c1c;
}

.btn-action-red:hover,
.btn-action-red:focus,
.btn-action-red:focus-visible {
    background: linear-gradient(to bottom right, #f44336, #c62828);
    box-shadow: 0 0 6px 1px rgba(211, 47, 47, 0.5) !important;
    border: 1px solid #c62828;
    color: #ffffff !important;
}

.btn-action-red:active,
.btn-action-red.active,
.btn-action-red:focus:active,
.btn-action-red:not(:disabled):not(.disabled):active {
    background-color: #b71c1c !important;
    box-shadow: 0 0 6px 2px rgba(183, 28, 28, 0.35) inset !important;
    border: 1px solid #b71c1c;
    color: #ffffff !important;
}

/* --- btn-action-green --- */
.btn-action-green {
    color: #ffffff;
    background: linear-gradient(to bottom right, #2e7d32, #1b5e20);
    border: 1px solid #1b5e20;
}

.btn-action-green:hover,
.btn-action-green:focus,
.btn-action-green:focus-visible {
    background: linear-gradient(to bottom right, #388e3c, #2e7d32);
    box-shadow: 0 0 6px 1px rgba(46, 125, 50, 0.5) !important;
    border: 1px solid #2e7d32;
    color: #ffffff !important;
}

.btn-action-green:active,
.btn-action-green.active,
.btn-action-green:focus:active,
.btn-action-green:not(:disabled):not(.disabled):active {
    background-color: #1b5e20 !important;
    box-shadow: 0 0 6px 2px rgba(27, 94, 32, 0.35) inset !important;
    border: 1px solid #1b5e20;
    color: #ffffff !important;
}

/* --- btn-next --- */
.btn-next {
    width: 2.3rem;
    background-color: #005dbe;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: .25rem;
    padding-right: .25rem;
    color: #fff;
    box-shadow: none;
    border: none;
    transition: box-shadow .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease;
}

.btn-next:hover,
.btn-next:focus {
    background-color: #324c85;
    color: #fff;
}

.btn-next:active,
.btn-next.active,
.btn-next:focus:active,
.btn-next:not(:disabled):not(.disabled):active,
.btn-next.ripple-surface,
.btn-next.ripple-surface:active {
    background-color: #324c85 !important;
    color: #fff !important;
}

.btn-next:focus-visible {
    outline: 0;
    box-shadow: none;
}