
#server_list {
    position: fixed;
    top: 100px;
    left: 16px;
    width: 260px;
    max-height: 360px;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 12px;
    border-radius: 22px;
    background: rgba(20, 20, 20, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.38);
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: white;
    z-index: 99;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

#server_list::-webkit-scrollbar {
    width: 5px;
}

#server_list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

#server_list.hidden {
    opacity: 0;
    pointer-events: none;
}

.server_title {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 10px;
}


.server_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 54px;
    padding: 7px 9px;
    margin-bottom: 6px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.server_item:last-child {
    margin-bottom: 0;
}

.server_item:hover {
    background: rgba(255, 255, 255, 0.085);
    border-color: rgba(255, 255, 255, 0.14);
}

.server_item:active {
    transform: scale(0.98);
}

.server_item.selected {
    background: rgba(74, 222, 128, 0.09);
    border-color: rgba(74, 222, 128, 0.45);
}

.server_info {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 0;
}

.server_name {
    font-size: 13px;
    font-weight: 650;
    color: rgba(255, 255, 255, 0.96);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.server_players {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.52);
    font-weight: 450;
}


.server_ram {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    padding: 9px 8px;
    box-sizing: border-box;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ram_bar {
    display: block;
    width: 5px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.10);
}

.ram_bar_1 {
    height: 9px;
}

.ram_bar_2 {
    height: 15px;
}

.ram_bar_3 {
    height: 21px;
}

.server_ram.good .ram_bar {
    background: #4ade80;
    box-shadow: 0 0 5px rgba(74, 222, 128, 0.18);
}

.server_ram.warning .ram_bar_1,
.server_ram.warning .ram_bar_2 {
    background: #facc15;
    box-shadow: 0 0 5px rgba(250, 204, 21, 0.15);
}

.server_ram.warning .ram_bar_3 {
    background: rgba(250, 204, 21, 0.16);
}

.server_ram.critical .ram_bar_1 {
    background: #f87171;
    box-shadow: 0 0 5px rgba(248, 113, 113, 0.2);
}

.server_ram.critical .ram_bar_2,
.server_ram.critical .ram_bar_3 {
    background: rgba(248, 113, 113, 0.13);
}

@media (max-width: 700px) {
    .server_ram {
        width: 34px;
        height: 34px;
        padding: 7px;
        border-radius: 10px;
    }
}
