/* Lobby system styles */
.lobby-list {
    height: 250px;
    overflow-y: auto;
}

.lobby-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px;
    margin-bottom: 2px;
    border-radius: 0px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lobby-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lobby-info {
    flex: 1;
}

.lobby-name {
    font-weight: bold;
    font-size: 14px;
}

.lobby-players {
    font-size: 12px;
    opacity: 0.8;
}

.lobby-input {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lobby-input input {
    color: rgb(0, 0, 0);
    background-color: rgb(190, 190, 190);
    border: none;
    border-radius: 0px;
    margin-top: 10px;
    padding: 8px;
    width: 80%;
    font-size: 16px;
}

.lobby-list button {
    padding: 5px 10px;
    font-size: 12px;
    margin: 0;
}

.lobby-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    /* margin-top: 8px; */
}

/* Neutralise the global button defaults inside .lobby-controls */
.lobby-controls button {
    margin: 0;
    padding: 7px 10px;
    font-size: 13px;
    width: 60%;
}

/* Row: Create Match + square copy-link icon */
.lobby-create-row {
    display: flex;
    align-items: stretch;
    width: 60%;
    gap: 0;
}

/* Create Match fills the row, no extra overrides needed */
.lobby-create-row #createLobbyBtn {
    flex: 1;
    width: auto;
}

/* Copy-link: square = same height as its sibling, no padding fights */
.lobby-create-row .btn-copy-link {
    flex: 0 0 auto;
    aspect-ratio: 1 / 1;
    width: auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Leave Lobby inherits the 60% width from .lobby-controls button */

/* Lobby status indicator — shown instead of create buttons when in a lobby */
.lobby-indicator {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 60%;
    gap: 8px;
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.07);
}

.lobby-indicator__name {
    font-size: 13px;
    font-weight: bold;
    color: #ddd;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lobby-indicator__tag {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.5px;
    padding: 2px 5px;
    flex-shrink: 0;
}

.lobby-indicator__tag--public {
    color: #7dcf7d;
    border: 1px solid #7dcf7d;
}

.lobby-indicator__tag--private {
    color: #f0c060;
    border: 1px solid #f0c060;
}

/* Scrollbar styling for lobby list */
.lobby-list::-webkit-scrollbar {
    width: 6px;
}

.lobby-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.lobby-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.lobby-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}