/* ==========================================================
   ROOM LIST CONTAINER (NEW: FULL SCROLL SUPPORT)
========================================================== */
.roomListBox {
    padding: 10px;
min-height: 10000;
    /* NEW — FIXES MOBILE CUT-OFF */
    /* Scrollable list */
    overflow-y: auto;
    overflow-x: hidden;

    /* Required for scroll inside flex containers */
    flex: 1 1 auto;
    min-height: 0;

    /* Smooth mobile scrolling */
    -webkit-overflow-scrolling: touch;

    /* Optional look */
    background: rgba(255, 255, 255, 0.015);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

/* Optional: styled scrollbar (you can remove this if you want hidden scrollbars) */
.roomListBox::-webkit-scrollbar {
    width: 6px;
}

.roomListBox::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}

.roomListBox::-webkit-scrollbar-track {
    background: transparent;
}

/* ==========================================================
   ROOM ITEM WRAPPER (no clipping, supports multi-line)
========================================================== */
.room_item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.room_item:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================
   ROOM IMAGE (LEFT)
========================================================== */
.room-left {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 8px;
    
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* ==========================================================
   ROOM MID SECTION
========================================================== */
.room-mid {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.room-mid.active-room .room-name {
    color: #4db0ff;
    font-weight: 700;
}

.room-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    
    text-overflow: ellipsis;
}

/* ==========================================================
   ROOM DESCRIPTION — 3-line clamp, no clipping
========================================================== */
.room-desc {
    font-size: 12px;
    line-height: 1.3em;
    color: #bbb;
    
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* ==========================================================
   RIGHT SIDE: USER COUNT
========================================================== */
.room-users {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #ddd;
    min-width: 45px;
    justify-content: flex-end;
}

.room-user-count {
    font-weight: 600;
}

/* ==========================================================
   OPTIONAL LEGACY SUPPORT
========================================================== */
.roomListItem {
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.roomListUserCount {
    opacity: .7;
}

.roomListJoin {
    background: #2e57ff;
    border-radius: 6px;
    padding: 4px 10px;
}