/**
 * Site-wide replacement for window.confirm()'s native browser dialog — see
 * VideoHub.confirmDialog() in shared/videohub.js. Loaded on every page via
 * includes/client_boot.php so it's available everywhere without per-page CSS.
 */
.vh-confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .2s ease;
}
.vh-confirm-backdrop.show { opacity: 1; }

.vh-confirm-modal {
    width: 100%;
    max-width: 340px;
    background: #212121;
    border: 1px solid #2f2f2f;
    border-radius: 18px;
    padding: 26px 22px 20px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .3);
    transform: scale(.92) translateY(8px);
    opacity: 0;
    transition: transform .28s cubic-bezier(.34, 1.56, .64, 1), opacity .2s ease;
}
.vh-confirm-backdrop.show .vh-confirm-modal { transform: scale(1) translateY(0); opacity: 1; }

.vh-confirm-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(62, 166, 255, .15);
    color: #3ea6ff;
}
.vh-confirm-icon.danger { background: rgba(255, 76, 76, .15); color: #ff5c5c; }

.vh-confirm-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 1.3;
}
.vh-confirm-message {
    margin: 0 0 22px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #aaa;
    text-align: center;
    white-space: pre-wrap;
}

.vh-prompt-modal { max-width: 400px; text-align: left; }
.vh-prompt-title { text-align: left; margin-bottom: 14px; }
.vh-prompt-input {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    padding: 11px 13px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 11px;
    color: #f1f1f1;
    font: inherit;
    font-size: 13.5px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.vh-prompt-input::placeholder { color: #777; }
.vh-prompt-input:focus {
    outline: none;
    border-color: #3ea6ff;
    box-shadow: 0 0 0 3px rgba(62, 166, 255, .18);
}

.vh-confirm-actions { display: flex; gap: 10px; }
.vh-confirm-btn {
    flex: 1;
    padding: 12px 10px;
    border: none;
    border-radius: 11px;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .12s ease, filter .12s ease;
}
.vh-confirm-btn:active { transform: scale(.96); }
.vh-confirm-cancel { background: #2f2f2f; color: #f1f1f1; }
.vh-confirm-cancel:hover { filter: brightness(1.15); }
.vh-confirm-ok { background: #3ea6ff; color: #0f0f0f; }
.vh-confirm-ok:hover { filter: brightness(1.1); }
.vh-confirm-ok.danger { background: #ff3b30; color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .vh-confirm-backdrop, .vh-confirm-modal, .vh-confirm-btn { transition: none; }
}
