.input,
select,
textarea,
.input-wrapper input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, .08);
    background: rgba(255, 255, 255, .94);
    border-radius: 12px;
    padding: 10px 12px;
    font-family: var(--font-family-r);
    font-weight: var(--font-weight-r);
    font-size: .98rem;
    line-height: 1.3;
    outline: none;
    color: var(--txt);
    transition: box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
}

/* sensible default height for text inputs (was 20px — too small) */
.input-wrapper input {
    height: auto;
    min-height: 36px;
}

/* textarea specifics (keeps your original behavior but ensures padding & box-sizing) */
textarea {
    min-height: 90px;
    resize: vertical;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* improved select spacing */
select {
    padding-left: 12px;
    padding-right: 2.6em;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(0, 0, 0, .45) 50%),
        linear-gradient(135deg, rgba(0, 0, 0, .45) 50%, transparent 50%),
        linear-gradient(to right, transparent, transparent);
    background-position: calc(100% - 18px) center, calc(100% - 12px) center, 100% 0;
    background-size: 6px 6px, 6px 6px, 2.5em 100%;
    background-repeat: no-repeat;
}

/* focus — uses a compatible rgba fallback instead of color-mix for broad support */
/* rgba(47,123,255,0.12) is based on --accent: #2F7BFF */
.input:focus,
select:focus,
textarea:focus,
.input-wrapper input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(47, 123, 255, 0.12);
    outline: none;
}

/* placeholder color */
.input::placeholder,
textarea::placeholder,
.input-wrapper input::placeholder {
    color: rgba(11, 21, 38, 0.45);
}

/* disabled / readonly */
.input:disabled,
select:disabled,
textarea:disabled,
.input[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* reduce browser autofill visual glitches */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    box-shadow: 0 0 0px 1000px rgba(255, 255, 255, .94) inset;
    -webkit-text-fill-color: var(--txt);
    transition: background-color 5000s ease-in-out 0s;
}


.route_inp_before_elem{
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid;
}

.route_inp_be_node {
    background-color: #f311ff50;
    border-color: #f311ff;
}

.route_inp_be_droneport {
    background-color: #ff750050;
    border-color: #ff7500;
}

.route_inp_be_airspace {
    background-color: #1193ff50;
    border-color: #1193ff;
}

.route_inp_before_elem p {
    font-size: 14px;
    font-weight: lighter;
    font-family: Arial, Helvetica, sans-serif;
    color: rgb(48, 48, 48);
    white-space: nowrap;
}


.route_inp_be_collapsed{
    display: none;
}

.input-wrapper-horizontal{
    display: flex;
    gap: 15px;
    align-items: center;
    width: 100%;
}