/* =========================
   UI: Buttons (global)
   ========================= */

.ui-btn {
    height: 5rem; /* 80px */
    border-radius: 0.375rem; /* 6px */
    font-weight: 600;
    letter-spacing: 0.0125rem; /* 0.2px */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem; /* 10px */
    padding: 0 1.125rem; /* 18px */
    color: #111827;
    text-decoration: none;
    text-transform: uppercase;
}

a.ui-btn {
    text-decoration: none !important;
}

.ui-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.ui-btn--primary {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.ui-btn--primary:hover {
    background: #0b1220;
    border-color: #0b1220;
}

.ui-btn--soft {
    background: #f3f4f6;
    border-color: #f3f4f6;
    color: #111827;
}

.ui-btn--block {
    width: 100%;
}

.ui-btn__icon {
    width: 1.125rem; /* 18px */
    height: 1.125rem; /* 18px */
    display: inline-block;
}

/* Bootstrap “pregazi” (samo gde koristiš naše klase) */
.btn.ui-btn {
    padding: 0 1.125rem; /* 18px */
}

/* =========================
   UI: Forms (global)
   ========================= */

.ui-label {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem; /* 8px */
    font-size: 0.875rem;
}

.ui-input {
    height: 3.75rem; /* 60px */
    border-radius: 0.375rem; /* 6px */
    border: 0.0625rem solid #e8ecf4; /* 1px */
    padding: 0 1rem; /* 16px */
    outline: none;
    box-shadow: none;
}

.ui-input::placeholder {
    color: #6b7280;
}

.ui-input:focus {
    border-color: #c7d2fe;
    box-shadow: 0 0 0 0.25rem rgba(167, 139, 250, 0.18); /* 4px */
    background: #eef4ff;
}

.form-control.ui-input {
    padding: 0 1rem; /* 16px */
} /* bootstrap compatibility */

.ui-help {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
}

.ui-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.875rem; /* 14px */
}

.ui-link:hover {
    text-decoration: underline;
}

/* ======================================================
   INPUT BG: zgazi Bootstrap + zgazi Chrome autofill
   ====================================================== */

/* Regular inputs/selects */
.form-control,
.form-select,
.form-control:focus,
.form-select:focus {
    background-color: transparent !important;
    background-image: none !important;

    /* Bootstrap 5.3 ume da vuče var(--bs-body-bg) za input bg */
    --bs-body-bg: transparent;
}

/* Chrome/Safari autofill: umesto plave, ofarbaj kao pozadina (bela) */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-select:-webkit-autofill,
.form-select:-webkit-autofill:hover,
.form-select:-webkit-autofill:focus,
textarea.form-control:-webkit-autofill,
textarea.form-control:-webkit-autofill:hover,
textarea.form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 62.5rem #fff inset !important; /* 1000px */
    box-shadow: 0 0 0 62.5rem #fff inset !important; /* 1000px */

    -webkit-text-fill-color: inherit !important;
    caret-color: inherit !important;

    /* da ne “blinkuje” */
    transition: background-color 9999s ease-out 0s;
}

/* bonus: ako imaš i “selected” varijantu */
input.form-control:-internal-autofill-selected {
    -webkit-box-shadow: 0 0 0 62.5rem #fff inset !important; /* 1000px */
    box-shadow: 0 0 0 62.5rem #fff inset !important; /* 1000px */
}
