/* BlueNova — unified native select styling */

.bn-va,
body.pilot-aev-shell,
body.pilot-center,
body.pilot-auth-layout,
.admin-shell {
    --bn-select-bg: #0f1728;
    --bn-select-bg-hover: #152238;
    --bn-select-border: rgba(100, 140, 190, 0.28);
    --bn-select-border-hover: rgba(58, 186, 244, 0.48);
    --bn-select-border-focus: #3abaf4;
    --bn-select-text: #eef4ff;
    --bn-select-label: #8ba3c7;
    --bn-select-radius: 8px;
    --bn-select-height: 44px;
    --bn-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%2300cff0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

body.pilot-aev-shell {
    --bn-select-bg: #161616;
    --bn-select-bg-hover: #1e1e1e;
    --bn-select-border: rgba(120, 130, 145, 0.35);
}

.bn-select,
.bn-va select:not([multiple]),
body.pilot-aev-shell select:not([multiple]),
body.pilot-center:not(.pilot-auth-layout) select:not([multiple]),
body.pilot-auth-layout .pilot-field select:not([multiple]),
.pilot-aev-filter select:not([multiple]),
.admin-field select:not([multiple]),
.pilot-filter-bar select:not([multiple]) {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    display: block;
    width: 100%;
    min-height: var(--bn-select-height);
    padding: 0 42px 0 14px;
    border: 1px solid var(--bn-select-border);
    border-radius: var(--bn-select-radius);
    background-color: var(--bn-select-bg);
    background-image: var(--bn-select-chevron);
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    color: var(--bn-select-text);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    cursor: pointer;
    box-sizing: border-box;
    color-scheme: dark;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.16);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.bn-select:hover:not(:disabled),
.bn-va select:not([multiple]):hover:not(:disabled),
body.pilot-aev-shell select:not([multiple]):hover:not(:disabled),
body.pilot-center:not(.pilot-auth-layout) select:not([multiple]):hover:not(:disabled),
body.pilot-auth-layout .pilot-field select:not([multiple]):hover:not(:disabled),
.pilot-aev-filter select:not([multiple]):hover:not(:disabled),
.admin-field select:not([multiple]):hover:not(:disabled),
.pilot-filter-bar select:not([multiple]):hover:not(:disabled) {
    border-color: var(--bn-select-border-hover);
    background-color: var(--bn-select-bg-hover);
}

.bn-select:focus,
.bn-va select:not([multiple]):focus,
body.pilot-aev-shell select:not([multiple]):focus,
body.pilot-center:not(.pilot-auth-layout) select:not([multiple]):focus,
body.pilot-auth-layout .pilot-field select:not([multiple]):focus,
.pilot-aev-filter select:not([multiple]):focus,
.admin-field select:not([multiple]):focus,
.pilot-filter-bar select:not([multiple]):focus {
    outline: none;
    border-color: var(--bn-select-border-focus);
    box-shadow:
        0 0 0 3px rgba(58, 186, 244, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    background-color: var(--bn-select-bg-hover);
}

.bn-select:disabled,
.bn-va select:disabled,
body.pilot-aev-shell select:disabled,
body.pilot-center select:disabled,
body.pilot-auth-layout .pilot-field select:disabled,
.admin-field select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.bn-select option,
.bn-va select option,
body.pilot-aev-shell select option,
body.pilot-center select option,
body.pilot-auth-layout .pilot-field select option,
.admin-field select option,
.pilot-aev-filter select option {
    background-color: #101828;
    color: #f3f4f6;
    padding: 8px;
}

.bn-select option:checked,
.bn-va select option:checked,
body.pilot-aev-shell select option:checked,
body.pilot-center select option:checked,
body.pilot-auth-layout .pilot-field select option:checked,
.admin-field select option:checked {
    background: linear-gradient(0deg, #1a2e78, #1a2e78);
    color: #fff;
}

.bn-select-wrap {
    display: block;
    width: 100%;
}

.bn-select-wrap > label,
.pilot-aev-schedules__field.bn-select-wrap > label,
.pilot-aev-charter__field.bn-select-wrap > label,
.pilot-aev-field.bn-select-wrap > label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bn-select-label);
}

.bn-select-wrap--compact select,
.bn-select-wrap--compact .bn-select {
    min-height: 40px;
    font-size: 13px;
}

@media (max-width: 640px) {
    .bn-select,
    .bn-va select:not([multiple]),
    body.pilot-aev-shell select:not([multiple]) {
        min-height: 46px;
        font-size: 15px;
    }
}
