/* ==================== COLLAPSIBLE PANELS ==================== */

.collapsible-panel {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(212, 168, 81, 0.12);
    border-radius: var(--radius-sm, 4px);
    overflow: hidden;
    transition: all 0.3s ease;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    cursor: pointer;
    user-select: none;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(212, 168, 81, 0.08);
    transition: background 0.2s ease;
}

.panel-header:hover {
    background: rgba(0, 0, 0, 0.2);
}

.panel-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-icon {
    font-size: 12px;
    opacity: 0.7;
}

.panel-title {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(212, 168, 81, 0.6);
}

.panel-count {
    font-size: 11px;
    color: #888;
    font-weight: normal;
}

.panel-toggle {
    font-size: 10px;
    color: #666;
    transition: transform 0.3s ease;
}

.collapsible-panel.collapsed .panel-toggle {
    transform: rotate(-90deg);
}

.panel-content {
    max-height: 300px;
    overflow-y: auto;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.2s ease;
    opacity: 1;
}

.collapsible-panel.collapsed .panel-content {
    max-height: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
}

.collapsible-panel.collapsed .panel-header {
    border-bottom: none;
}

/* ==================== LOBBY PLAYERS LIST ==================== */

#lobby-players-panel {
    margin-bottom: 12px;
}

.lobby-players-list {
    padding: 8px;
}

.lobby-player-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 3px;
    font-size: 12px;
    color: #aaa;
    transition: background 0.2s ease;
}

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

.lobby-player-item.is-you {
    background: rgba(212, 168, 81, 0.08);
    color: #c4a66a;
}

.lobby-player-number {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    font-family: var(--font-mono, monospace);
    font-size: 10px;
    font-weight: 600;
    color: #666;
}

.lobby-player-item.is-you .lobby-player-number {
    background: rgba(212, 168, 81, 0.15);
    color: #c4a66a;
}

.lobby-player-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.you-tag {
    font-size: 10px;
    color: #22c55e;
    font-weight: 600;
}

.lobby-player-ready {
    color: #22c55e;
    font-size: 12px;
}

.lobby-player-empty {
    padding: 16px;
    text-align: center;
    color: #666;
    font-size: 12px;
    font-style: italic;
}

/* ==================== INFO PANEL (Moved to Right Side) ==================== */

#info-panel {
    margin-bottom: 12px;
}

#info-panel .panel-content {
    padding: 10px 12px;
}

.info-item {
    font-size: 12px;
    color: #999;
    padding: 5px 0;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.info-item:first-child {
    padding-top: 0;
}

.info-item:last-child {
    padding-bottom: 0;
}

.info-number {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 168, 81, 0.12);
    border-radius: 3px;
    font-family: var(--font-mono, monospace);
    font-size: 10px;
    font-weight: 700;
    color: #c4a66a;
    flex-shrink: 0;
}

.info-highlight {
    color: #c4a66a;
    font-weight: 500;
}

/* ==================== SIDE PANEL ADJUSTMENTS ==================== */

#side-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

#side-panel::-webkit-scrollbar {
    width: 4px;
}

#side-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

#side-panel::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 81, 0.2);
    border-radius: 2px;
}

/* Section dividers */
.panel-section-divider {
    height: 1px;
    background: rgba(212, 168, 81, 0.08);
    margin: 8px 0;
}

.panel-section-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666;
    padding: 4px 0 8px 0;
    text-align: center;
}

/* ==================== ALIVE PLAYERS LIST (In-Game) ==================== */

#alive-players-panel {
    margin-bottom: 12px;
}

.alive-players-list {
    padding: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.alive-player-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    color: #888;
}

.alive-player-item.is-you {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.alive-player-item.is-dead {
    color: #666;
    text-decoration: line-through;
    opacity: 0.5;
}

.alive-player-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

.alive-player-item.is-dead .alive-player-dot {
    background: #666;
}

/* ==================== PANEL SCROLLBAR ==================== */

.panel-content::-webkit-scrollbar {
    width: 4px;
}

.panel-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.panel-content::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 81, 0.2);
    border-radius: 2px;
}

/* ==================== REMOVE OLD INFO PANEL STYLES ==================== */
/* These override any existing left-side info panel styles */

.info-panel-old {
    display: none !important;
}