/* Global modern input style inspired by setup wizard */
.form-control.form-control-solid,
.form-select.form-select-solid {
    background: #f3f4f6 !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    min-height: 48px !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    font-family: "Inter", "Noto Kufi Arabic", sans-serif !important;
    padding: 11px 16px !important;
    box-shadow: none !important;
    color: #181c32 !important;
    transition: all 0.2s ease !important;
}

.form-control.form-control-solid::placeholder,
.form-select.form-select-solid::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

input[type="number"] {
    direction: rtl !important;
    text-align: right !important;
}

input[type="number"].text-start,
input[type="number"].text-end {
    direction: rtl !important;
    text-align: right !important;
}

.form-control.form-control-solid:focus,
.form-select.form-select-solid:focus {
    background: #ffffff !important;
    border-color: #d1d5db !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    color: #181c32 !important;
}

/* Select2 integration */
.select2-container--bootstrap5 .select2-selection {
    background: #f3f4f6 !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    min-height: 48px !important;
    padding: 11px 16px !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: none !important;
}

.select2-container--bootstrap5.select2-container--focus .select2-selection {
    background: #ffffff !important;
    border-color: #d1d5db !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

.select2-container--bootstrap5 .select2-selection__rendered {
    padding: 0 !important;
    line-height: normal !important;
    color: #4b5563 !important;
    font-size: 1rem !important;
    width: 100%;
}

/* Slightly cleaner labels across forms */
.fv-row > label,
.col-form-label,
.form-label,
.form-check-label {
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    color: #4b5563 !important;
}

[data-bs-theme="dark"] .form-control.form-control-solid,
[data-bs-theme="dark"] .form-select.form-select-solid,
[data-bs-theme="dark"] .select2-container--bootstrap5 .select2-selection {
    background-color: #2b2b40 !important;
    color: #92929f !important;
}

[data-bs-theme="dark"] .form-control.form-control-solid::placeholder,
[data-bs-theme="dark"] .form-select.form-select-solid::placeholder {
    color: #6b6b8a !important;
    opacity: 1 !important;
}

[data-bs-theme="dark"] .form-control.form-control-solid:focus,
[data-bs-theme="dark"] .form-select.form-select-solid:focus,
[data-bs-theme="dark"] .select2-container--bootstrap5.select2-container--focus .select2-selection {
    background-color: #32324d !important;
    border-color: #4b4b6a !important;
    color: #92929f !important;
}

[data-bs-theme="dark"] .select2-container--bootstrap5 .select2-selection__rendered,
[data-bs-theme="dark"] .fv-row > label,
[data-bs-theme="dark"] .col-form-label,
[data-bs-theme="dark"] .form-label,
[data-bs-theme="dark"] .form-check-label {
    color: #92929f !important;
}
