/* =========================
   WRAPPER
========================= */
.les-filters {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 25px;
    border-radius: 16px;
    background: rgba(20, 23, 42, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    flex-wrap: wrap;
}


/* =========================
   FIELD WRAPPER
========================= */
.les-field,
.les-select {
    position: relative;
    flex: 1;
    min-width: 160px;
}


/* =========================
   INPUT + TRIGGER
========================= */
.les-input,
.les-trigger {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    background: transparent !important;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
}


/* =========================
   PLACEHOLDER
========================= */
.les-input::placeholder {
    color: rgba(255,255,255,0.5);
}


/* =========================
   TRIGGER TEXT
========================= */
.les-trigger {
    color: rgba(255,255,255,0.7);
}


/* =========================
   SEPARATORI VERTICALI
========================= */
.les-field:not(:last-child)::after,
.les-select:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);

    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.1);
}


/* =========================
   DROPDOWN
========================= */
.les-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;

    background: #1c1f3a;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);

    padding: 5px 0;
    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.les-select.les-open .les-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 250px;
    overflow-y: scroll;
}


/* =========================
   DROPDOWN ITEMS
========================= */
.les-dropdown li {
    padding: 10px 15px;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.les-dropdown li:hover {
    background: rgba(255,255,255,0.05);
}


/* =========================
   BUTTON
========================= */
.les-btn {
    height: 50px;
    width: 50px;

    border-radius: 12px;
    border: none;
    cursor: pointer;

    background: linear-gradient(
        135deg,
        #7b5cff,
        #4fd1c5
    );

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    font-size: 18px;

    transition: 0.2s ease;
    flex-shrink: 0;
}

.les-btn:hover {
    transform: scale(1.05);
}


/* =========================
   AUTOCOMPLETE
========================= */
.les-autocomplete {
    position: absolute;
    top: calc(100% + 10px);
    width: 100%;

    background: #1c1f3a;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);

    z-index: 9999;
    overflow: hidden;
}

.les-item {
    padding: 10px 15px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
}
.les-item a{color: rgb(255, 255, 255);}

.les-item:hover {
    background: rgba(255,255,255,0.05);
}
.les-item a:hover{color: rgba(255, 255, 255, 0.8);}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .les-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .les-field::after,
    .les-select::after {
        display: none;
    }

    .les-btn {
        width: 100%;
    }
}
