/* Glassmorphism style inside lobby content */
.lobby-content {
    background: rgba(18, 18, 18, 0.85) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff;
}

/* Override text color in dark mode lobby */
.lobby-content h2, 
.lobby-content h3 {
    color: #ffffff !important;
}

.lobby-content p {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Lobby Mode select buttons */
.lobby-btn {
    margin-top: 0 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
}

/* Dividers inside lobby */
.lobby-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin: 20px 0;
}

/* Role badge colors */
.role-badge.p1-badge {
    background: rgba(11, 87, 208, 0.2) !important;
    color: #00e5ff !important;
    border: 1px solid rgba(11, 87, 208, 0.4) !important;
}

.role-badge.p2-badge {
    background: rgba(179, 38, 30, 0.2) !important;
    color: #ff5252 !important;
    border: 1px solid rgba(179, 38, 30, 0.4) !important;
}

/* Status indicator panel in sidebar */
.online-status-panel {
    transition: all 0.3s ease;
}

/* Connection input state stylings */
#input-room-id:focus {
    outline: none;
    border-color: #00e5ff !important;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

/* Matchmaking Lobby UI Refinements */
.lobby-content .btn {
    margin: 0;
    width: 100%;
    height: 48px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
}

.lobby-content .btn.primary {
    background: linear-gradient(135deg, #0b57d0, #00e5ff) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.2) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.lobby-content .btn.primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.35) !important;
    background: linear-gradient(135deg, #0c62eb, #00f0ff) !important;
}

.lobby-content .btn.outline {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.lobby-content .btn.outline:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #00e5ff !important;
    color: #00e5ff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.15) !important;
}

.lobby-content #btn-create-room {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.lobby-content #btn-create-room:hover:not(:disabled) {
    background: linear-gradient(135deg, #047857, #059669) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35) !important;
}

.lobby-content #btn-back-to-lobby {
    margin-top: 16px;
}

.lobby-content .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.join-room-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
    margin-top: 4px;
    box-sizing: border-box;
}

.otp-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-header);
}

.otp-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    width: 100%;
    margin: 4px 0;
}

.otp-input {
    width: 54px;
    height: 54px;
    text-align: center;
    font-size: 1.7rem;
    font-weight: 800;
    font-family: 'Chakra Petch', sans-serif;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.otp-input:focus {
    border-color: #00e5ff;
    background: rgba(0, 229, 255, 0.05);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Button Spinner */
.spinner-btn {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}
