aside {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    background-color: rgba(0, 0, 0, 0.6); 
    padding: 20px;
    border-radius: 15px;
    border: 1px solid hsl(204, 34%, 64%); 
    min-width: 250px;
    box-shadow: 0 0 20px rgb(255, 255, 255);
}

.filter {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 6px;
}

.filter h2 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.filter label {
    color: #ddd;
    margin-top: 10px;
    font-size: 0.9rem;
}

.filter input, .filter select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    background-color: #162938;
    border: 1px solid #444;
    border-radius: 5px;
    color: white;
}

.filter select {
    cursor: pointer;
}

.filter button {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

#filterSubmit, #resetFilters {
    background-color: #162938;
    color: white;
}

#resetFilters:hover, #filterSubmit:hover {
    background-color: hsl(206, 44%, 35%);
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(145deg, rgba(22, 41, 56, 0.6), rgba(0, 0, 0, 0.4));
    border: 1px solid #37576d;
    border-radius: 10px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.toggle-container:hover {
    border-color: #5dade2;
    box-shadow: 0 4px 15px rgba(93, 173, 226, 0.2);
}

.toggle-label {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    cursor: pointer;
    margin-top: 0 !important;
    letter-spacing: 0.5px;
}

.toggle-label small {
    color: #8da6b8;
    font-weight: 400;
    font-size: 0.75rem;
    display: block; 
    margin-top: 3px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid #37576d;
    transition: .4s cubic-bezier(0.4, 0.0, 0.2, 1); 
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #8da6b8;
    transition: .4s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

input:checked + .slider {
    background-color: rgba(45, 226, 123, 0.2);
    border-color: #2de27b;
    box-shadow: 0 0 10px rgba(45, 226, 123, 0.3);
}

input:checked + .slider:before {
    transform: translateX(24px);
    background-color: #2de27b;
    box-shadow: 0 0 8px #2de27b;
}

@media (max-width: 900px) {
    aside {
        width: 100%; 
        min-width: auto;
        box-sizing: border-box;
    }
}