
.wifi-dropdown {
    position: absolute;
    top: 28px;
    right: 160px;
    width: 280px;
    background: rgba(28, 28, 30, 0.92);
    backdrop-filter: blur(80px) saturate(180%);
    -webkit-backdrop-filter: blur(80px) saturate(180%);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 1px rgba(255, 255, 255, 0.12) inset;
    color: white;
    display: none;
    z-index: 10000;
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    padding: 12px;
}

.wifi-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wifi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 8px;
}

.wifi-header .wifi-title {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.2px;
}

.wifi-toggle {
    position: relative;
    display: inline-block;
    width: 51px;
    height: 31px;
    background: rgba(60, 60, 67, 0.6);
    border-radius: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wifi-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wifi-toggle input:checked {
    background: #34C759;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 27px;
    height: 27px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.wifi-toggle input:checked + .toggle-slider {
    transform: translateX(20px);
    background-color: white;
}

.wifi-toggle input:not(:checked) + .toggle-slider {
    transform: translateX(0);
}

.wifi-toggle:has(input:checked) {
    background: #34C759;
}

.wifi-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 159, 10, 0.15);
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 8px;
    letter-spacing: -0.1px;
}

.warning-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.wifi-section {
    background: rgba(50, 50, 52, 0.75);
    border-radius: 16px;
    padding: 8px;
    margin-bottom: 8px;
    border: 0.5px solid rgba(255, 255, 255, 0.06);
}

.wifi-section:last-of-type { margin-bottom: 0; }

.wifi-section-title {
    padding: 6px 8px 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.wifi-network {
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
}

.wifi-network:hover { background: rgba(255, 255, 255, 0.08); }
.wifi-network.active { background: rgba(0, 106, 220, 0.5); }

.network-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.network-icon { font-size: 16px; flex-shrink: 0; }

.network-name {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.network-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
}

.arrow-icon {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.wifi-network.clickable { cursor: pointer; }

.wifi-footer { padding: 4px 0 0; }

.wifi-settings {
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    letter-spacing: -0.1px;
}

.wifi-settings:hover { background: rgba(255, 255, 255, 0.08); }

@media (max-width: 720px) {
    .wifi-dropdown {
        position: fixed;
        top: 50px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: 360px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .wifi-dropdown {
        right: 5px;
        left: 5px;
        top: 45px;
    }
    
    .wifi-header {
        padding: 6px 10px;
    }
    
    .wifi-section {
        padding: 6px;
    }
    
    .wifi-network {
        padding: 6px 10px;
    }
}
