/* Styl dla formularza sortowania (ciemny motyw) */
.filter-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 14px 24px;
    margin: 30px 0;
    max-width: 500px;
    margin-left: auto;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

/* Etykieta formularza */
.filter-form label {
    margin-right: 12px;
    font-weight: 600;
    color: #f1f1f1;
    font-size: 15px;
}

/* Select z ciemnym tłem i niestandardową strzałką */
.filter-form select {
    padding: 12px 40px 12px 15px;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 14px;
    background-color: #111;
    color: #f1f1f1;
    margin-right: 15px;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><polygon points='0,0 5,5 10,0' style='fill:white;'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px;
    min-width: 180px;
    height: 45px;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.05);
}

/* Przycisk z nowoczesnym wyglądem */
.filter-form button {
    background: linear-gradient(135deg, #0dcaf0, #0a58ca);
    color: #fff;
    border: none;
    padding: 10px 22px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(13, 202, 240, 0.3);
}

.filter-form button:hover {
    background: linear-gradient(135deg, #0a95b0, #073f9c);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(13, 202, 240, 0.5);
}

/* Responsywność */
/* Responsywność – zmieniony widok na telefonach */
@media only screen and (max-width: 767px) {
    .filter-form {
        flex-direction: row; /* zamiast kolumny, żeby select i button były obok */
        align-items: center; /* wyśrodkuj w pionie */
        max-width: none; /* usuń ograniczenie max szerokości */
        width: calc(100% - 130px); /* szerokość formularza - lewy margines */
        margin: 20px 0 30px 130px; /* góra 20px, dół 30px, lewy margines 130px */
        padding: 12px 16px;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    .filter-form label {
        font-size: 13px;
        margin-right: 10px;
        margin-bottom: 0;
        white-space: nowrap;
        color: #f1f1f1;
    }

    .filter-form select {
        font-size: 13px;
        padding: 10px 35px 10px 12px;
        margin-right: 10px;
        height: 40px;
        background-position: right 10px center;
        width: auto; /* dostosuj szerokość do zawartości */
        min-width: 120px;
        flex-grow: 1; /* rośnie do dostępnej szerokości */
    }

    .filter-form button {
        font-size: 13px;
        padding: 8px 18px;
        width: auto;
        box-shadow: 0 3px 8px rgba(13, 202, 240, 0.3);
        white-space: nowrap;
        flex-shrink: 0;
    }
}




