/* css/lobby.css 파일의 전체 내용 */

/* --- 공용 사이드 패널 스타일 --- */
        .modal { display: none; position: fixed; z-index: 10001; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.7); align-items: center; justify-content: center; }
        .modal-content { background-color: #2c2c2c; color: white; padding: 25px; border-radius: 10px; width: 90%; max-width: 420px; text-align: left; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
        .modal-content h2 { margin-top:0; color: #87CEFA; }
        .modal-content label { display: block; margin-top: 10px; margin-bottom: 5px; font-size:0.9em; }
        .modal-content input { width: calc(100% - 20px); padding: 10px; margin-bottom: 12px; border-radius: 5px; border: 1px solid #555; background-color: #333; color:white; }
        .modal-content button { width: 100%; padding: 12px; margin-top:15px; border-radius:5px; background-color: #007bff; color:white; border:none; cursor:pointer; }
        .modal-content button:hover { background-color: #0056b3; }
        #challengeModal p { margin-top: 0; margin-bottom: 20px; border-bottom: 1px solid #444; padding-bottom: 15px; }
        #challengeModal strong { color: #FFC107; }
        .game-selection-group { display: flex; gap: 15px; margin-bottom: 15px; }
        .game-selection-group .game-option { display: flex; align-items: center; cursor: pointer; font-size: 1em; }
        .game-selection-group input[type="radio"] { width: auto; margin-right: 8px; }
.modal {
    display: none; /* ✨ 핵심: 평소에는 보이지 않도록 숨김 */
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);

    /* flexbox를 이용해 내용물을 중앙 정렬 (보여질 때 사용됨) */
    align-items: center;
    justify-content: center;
}
.side-panel {
    position: fixed;
    top: 0;
    width: 90vw;
    max-width: 380px;
    height: 100vh;
    box-shadow: -3px 0 15px rgba(0,0,0,0.5);
    z-index: 10000;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s ease-in-out;
}
.side-panel.open {
    transform: translateX(0%);
}
.side-panel-header {
    background-color: #2a2a30;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    flex-shrink: 0;
}
.side-panel-close-btn {
    background: none; border: none; color: #ccc;
    font-size: 1.6em; line-height: 1; padding: 0 5px; cursor: pointer;
}
.side-panel-close-btn:hover { color: white; }
.side-panel-content { padding: 12px 15px; overflow-y: auto; flex-grow: 1; }
.side-panel-section { margin-bottom: 18px; }
.side-panel-section h4 {
    margin-top: 0; margin-bottom: 10px; color: #ffc107;
    font-size: 1.05em; border-bottom: 1px solid #555; padding-bottom: 8px;
}
.side-panel-section h4 button {
    background: none; border: none; color: #80deea; cursor: pointer;
    font-size: 0.9em; padding: 0 3px; float: right;
}
.side-panel-section ul { list-style: none; padding: 0; margin: 0; }
.side-panel-section li {
    background-color: rgba(255,255,255,.03); padding: 8px 10px;
    margin-bottom: 6px; border-radius: 5px; display: flex;
    justify-content: space-between; align-items: center; font-size: .9em;
}
.side-panel-section li button {
    padding: 4px 8px; font-size: .85em; margin-left: 5px; cursor: pointer;
    border: none; border-radius: 3px; color: white;
}
.accept-btn { background-color: #3498db !important; }
.accept-btn:hover { background-color: #2980b9 !important; }
.decline-btn { background-color: #e74c3c !important; }
.decline-btn:hover { background-color: #c0392b !important; }
.challenge-btn { background-color: #27ae60 !important; }
.challenge-btn:hover { background-color: #229954 !important; }

/* --- 로비 창 고유 스타일 --- */
.lobby-window {
    right: 0;
    background-color: rgba(30, 30, 40, 0.98);
    border-left: 1px solid #4A4A4A;
    transform: translateX(100%);
}
#inactivityTimerDisplay {
    font-weight: normal; font-size: 0.85em; color: #FFCA28;
    margin: 0 auto; pointer-events: none;
}

/* --- 공용 플로팅 버튼 스타일 --- */
.floating-action-btn {
    position: fixed; bottom: 20px; width: 50px; height: 50px;
    color: white; border: none; border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3); cursor: pointer;
    z-index: 9999; font-size: 1.8em; display: flex;
    align-items: center; justify-content: center;
    transition: background-color 0.2s ease;
}
.lobby-btn {
    right: 20px;
    background-color: #007bff;
}
.lobby-btn:hover {
    background-color: #0056b3;
}