/**
 * LobbyConfirm — modal styles (shared by user and admin areas).
 * Keep all .lobby-confirm-* selectors here; remove duplicates from
 * main.css and admin.css once this file is loaded everywhere.
 */

.lobby-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 8, 16, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lobby-confirm-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

body.lobby-dialog-open { overflow: hidden; }

.lobby-confirm-card {
    background: linear-gradient(145deg, #151520 0%, #0f0f1a 100%);
    border: 1px solid rgba(0, 212, 255, 0.32);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 212, 255, 0.15);
    max-width: 460px;
    width: 100%;
    overflow: hidden;
    transform: scale(0.94) translateY(12px);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lobby-confirm-overlay.is-active .lobby-confirm-card {
    transform: scale(1) translateY(0);
}

.lobby-confirm-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lobby-confirm-header .lobby-confirm-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.lobby-confirm-header .lobby-confirm-badge {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.22);
    padding: 4px 10px;
    border-radius: 999px;
}

.lobby-confirm-close {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.lobby-confirm-close:hover {
    color: #fff;
}

.lobby-confirm-body {
    padding: 22px 20px;
}

.lobby-confirm-title {
    font-size: 1.1rem;
    font-weight: 750;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.35;
}

.lobby-confirm-message {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    line-height: 1.5;
    white-space: pre-line;
}

.lobby-prompt-label {
    display: block;
    margin-top: 16px;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.8rem;
    font-weight: 700;
}

.lobby-prompt-input {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(0, 212, 255, 0.28);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    font: inherit;
    resize: vertical;
}

.lobby-prompt-input:focus {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
}

.lobby-prompt-counter {
    display: block;
    margin-top: 6px;
    text-align: right;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
}

.lobby-confirm-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.lobby-confirm-btn {
    font-size: 0.82rem;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lobby-confirm-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.lobby-confirm-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.lobby-confirm-btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #7b2cbf 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 212, 255, 0.35);
}

.lobby-confirm-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.48);
}

.lobby-confirm-btn-primary.danger {
    background: linear-gradient(135deg, #ff4757 0%, #ff6b7a 100%);
    box-shadow: 0 4px 14px rgba(255, 71, 87, 0.35);
}

.lobby-confirm-btn-primary.danger:hover {
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.48);
}

.lobby-confirm-overlay .lobby-confirm-btn:focus-visible {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
}

@media (max-width: 576px) {
    .lobby-confirm-overlay {
        padding: 12px;
    }

    .lobby-confirm-footer {
        flex-direction: column-reverse;
    }

    .lobby-confirm-btn {
        width: 100%;
        justify-content: center;
    }
}
