/*
 * STPS reusable UI components
 *
 * Everything here is opt-in with an .stps-* class.
 * This avoids one app accidentally restyling another app's controls.
 */

.stps-form {
    width: 100%;
}

.stps-form-group {
    margin-bottom: 28px;
}

.stps-label {
    display: block;
    margin-bottom: 12px;
    color: #172b4d;
    font-size: 18px;
    font-weight: 400;
}

.stps-input,
.stps-select,
.stps-textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 14px 17px;
    border: 1px solid var(--stps-border);
    border-radius: 6px;
    background: #fff;
    color: #172b4d;
    font: inherit;
    font-size: 20px;
    box-shadow: 0 1px 2px rgba(9,30,66,.04);
}

.stps-input:focus,
.stps-select:focus,
.stps-textarea:focus {
    outline: 3px solid rgba(6,35,90,.12);
    border-color: var(--stps-navy);
}

.stps-help {
    margin: 10px 0 0;
    color: var(--stps-muted);
    font-size: 16px;
    line-height: 1.5;
}

.stps-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 55px;
    padding: 12px 20px;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,.10);
    transition:
        background .15s ease,
        transform .05s ease,
        border-color .15s ease;
}

.stps-button:active {
    transform: translateY(1px);
}

.stps-button-block {
    width: 100%;
}

.stps-button-primary {
    background: linear-gradient(180deg, #5262ed, var(--stps-blue));
    color: #fff;
}

.stps-button-primary:hover {
    background: linear-gradient(180deg, #4858df, var(--stps-blue-dark));
}

.stps-button-navy {
    background: var(--stps-navy);
    color: #fff;
}

.stps-button-navy:hover {
    background: var(--stps-navy-dark);
}

.stps-button-success {
    background: linear-gradient(180deg, #16ad60, var(--stps-green));
    color: #fff;
}

.stps-button-success:hover {
    background: linear-gradient(180deg, #14a65b, var(--stps-green-dark));
}

.stps-button-outline {
    border: 1px solid var(--stps-navy);
    background: #fff;
    color: var(--stps-navy);
    box-shadow: none;
}

.stps-button-outline:hover {
    background: #f2f6f8;
}

.stps-card {
    background: #fff;
    border: 1px solid #dce2e8;
    border-radius: var(--stps-card-radius);
    box-shadow: 0 4px 14px rgba(15,23,42,.035);
}

.stps-alert {
    padding: 15px 17px;
    border-radius: 7px;
    font-weight: 600;
}

.stps-alert-success {
    background: var(--stps-success-bg);
    color: var(--stps-success-text);
}

.stps-alert-error {
    background: var(--stps-error-bg);
    color: var(--stps-error-text);
}

.stps-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #eef1f4;
    color: #7b8794;
    font-size: 12px;
    font-weight: 700;
}

.stps-inline-actions {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

@media (max-width: 700px) {
    .stps-input,
    .stps-select,
    .stps-textarea {
        width: 100%;
        max-width: 100%;
    }

    .stps-input[type="date"] {
        -webkit-appearance: none;
        appearance: none;
    }

    .stps-inline-actions {
        flex-direction: column;
    }

    .stps-inline-actions > .stps-button {
        width: 100%;
    }
}
