/*
 * WebPay Design System — wbp-design.css v1.0
 * Loaded after app.css to override legacy styles globally.
 * All pages share these rules — no per-page duplication needed.
 */

/* ===== Buttons ===== */
button {
    border-radius: 6px !important;
}

.btn {
    height: 46px;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 6px;
    padding: 0 20px;
    line-height: 1;
    margin-top: 0;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    height: 34px;
    font-size: 11px !important;
    padding: 0 14px;
}

.btn-primary {
    background-color: #003883 !important;
    border-color: #003883 !important;
    color: #fff !important;
    font-weight: 600 !important;
    transition: background-color 0.18s, border-color 0.18s;
}

.btn-primary:hover {
    background-color: #002660 !important;
    border-color: #002660 !important;
    color: #fff !important;
}

.btn-primary:focus,
.btn-primary.focus {
    background-color: #002660 !important;
    border-color: #002660 !important;
    color: #fff !important;
    box-shadow: 0 0 0 2px rgba(0,56,131,0.25) !important;
}

.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: #001d4a !important;
    border-color: #001d4a !important;
    color: #fff !important;
}

.btn-primary.disabled,
.btn-primary:disabled {
    background-color: #003883 !important;
    border-color: #003883 !important;
    color: #fff !important;
    opacity: 0.6;
}

.btn-outline-primary {
    color: #003883 !important;
    border-color: #003883 !important;
    background: transparent !important;
    font-weight: 600 !important;
}

.btn-outline-primary:hover {
    background-color: #003883 !important;
    color: #fff !important;
}

.btn-outline-secondary {
    border-color: #dee2e6 !important;
    color: #495057 !important;
    background: #fff !important;
    font-weight: 600 !important;
}

.btn-outline-secondary:hover {
    background: #f8f9fa !important;
    color: #212529 !important;
    border-color: #adb5bd !important;
}

/* ===== Form controls ===== */
label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 5px;
    letter-spacing: 0.01em;
}

.form-control {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 6px !important;
    font-size: 0.92rem !important;
}

input.form-control {
    height: 44px;
    padding: 10px 14px;
}

select.form-control {
    height: 44px;
    padding: 10px 14px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 10px !important;
    padding-right: 36px !important;
    cursor: pointer;
}

.form-control:focus {
    background-color: #fff !important;
    border-color: #003883 !important;
    box-shadow: 0 0 0 2px rgba(0,56,131,0.12) !important;
    color: #212529 !important;
    outline: 0;
}

.form-control option {
    background: #fff;
    color: #212529;
}

/* ===== Cards ===== */
.card {
    opacity: 1;
    border-radius: 10px;
}

.modal-content {
    opacity: 1;
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

/* ===== Alerts ===== */
.alert-danger {
    background: #fff5f5;
    border-color: #f5c2c7;
    color: #842029;
}

/* ===== Tom Select (applied wherever the lib is loaded) ===== */
.ts-wrapper.form-control {
    padding: 0;
    border: none !important;
    background: none !important;
}

.ts-control {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    padding: 10px 14px !important;
    font-size: 0.92rem;
    color: #212529 !important;
    min-height: 44px;
}

.ts-control input {
    color: #212529 !important;
}

.ts-wrapper.focus .ts-control {
    border-color: #003883 !important;
    box-shadow: 0 0 0 2px rgba(0,56,131,0.12) !important;
}

.ts-dropdown {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    font-size: 0.92rem;
}

.ts-dropdown .option {
    padding: 9px 14px;
    color: #212529;
    transition: background 0.1s;
}

.ts-dropdown .option:hover,
.ts-dropdown .option.active {
    background-color: #eef2f9 !important;
    color: #003883 !important;
}

.ts-dropdown .option.selected {
    background-color: #003883 !important;
    color: #fff !important;
}

/* ===== Auth / Signup card — uniform padding across all pages ===== */
.reg-card {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.16) !important;
    opacity: 1 !important;
}

.reg-card .card-body {
    padding: 36px 32px;
}

/* ===== Full-page header banners (login, signup, forgot-password, reset) ===== */
/* Navbar is position:absolute — push banner content below it on small screens */
@media (max-width: 767px) {
    .header-area-login .banner,
    .header-area-signup .banner {
        align-items: flex-start;
        padding-top: 72px;
        padding-bottom: 32px;
    }
}
