/* ============================================================
   Vack Voice notifications
   One component for every message the app shows a person.
   Dark glass, type-coloured, 10 second life, always dismissible.
   ============================================================ */

.vv-notif-stack {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(380px, calc(100vw - 36px));
    pointer-events: none;
}

.vv-notif {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 12px 12px 14px;
    border-radius: 12px;
    background: rgba(12, 22, 36, .96);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
    color: #EAF3FF;
    font-size: 13px;
    line-height: 1.45;
    backdrop-filter: blur(10px);
    overflow: hidden;
    animation: vvNotifIn .22s ease-out;
}

.vv-notif.is-out { animation: vvNotifOut .22s ease-in forwards; }

@keyframes vvNotifIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes vvNotifOut { to { opacity: 0; transform: translateY(6px) scale(.98); } }

.vv-notif::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--vv-accent, #4C9BFF);
}

.vv-notif-icon {
    flex: 0 0 18px;
    width: 18px; height: 18px;
    margin-top: 1px;
    color: var(--vv-accent, #4C9BFF);
}

.vv-notif-body { flex: 1 1 auto; min-width: 0; }
.vv-notif-msg { margin: 0; }
.vv-notif-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 11px;
    border-radius: 8px;
    border: 1px solid var(--vv-accent, #4C9BFF);
    background: color-mix(in srgb, var(--vv-accent, #4C9BFF) 18%, transparent);
    color: #F3F8FF;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.vv-notif-action:hover { background: color-mix(in srgb, var(--vv-accent, #4C9BFF) 30%, transparent); }

.vv-notif-x {
    flex: 0 0 24px;
    width: 24px; height: 24px;
    display: grid; place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #9FB6CC;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
}
.vv-notif-x:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.vv-notif-bar {
    position: absolute;
    left: 0; bottom: 0;
    height: 2px;
    width: 100%;
    transform-origin: left center;
    background: var(--vv-accent, #4C9BFF);
    opacity: .55;
    animation: vvNotifBar linear forwards;
    animation-duration: var(--vv-life, 10s);
}
.vv-notif-stack.is-paused .vv-notif-bar { animation-play-state: paused; }
.vv-notif-stack.is-paused .vv-notif { --vv-paused: 1; }

@keyframes vvNotifBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.vv-notif.is-success { --vv-accent: #46C08A; }
.vv-notif.is-info { --vv-accent: #4C9BFF; }
.vv-notif.is-warning { --vv-accent: #E0A33E; }
.vv-notif.is-error { --vv-accent: #E05656; }

/* Server flash, restyled to sit inside the dark app and behave like a toast. */
.vv-flash {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 16px;
    padding: 12px 44px 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(70, 192, 138, .45);
    background: rgba(20, 46, 38, .85);
    color: #CFF3E2;
    font-size: 13.5px;
    line-height: 1.45;
    animation: vvNotifIn .22s ease-out;
}
.vv-flash.is-error { border-color: rgba(224, 86, 86, .5); background: rgba(52, 22, 28, .85); color: #FFD3D8; }
.vv-flash.is-warning { border-color: rgba(224, 163, 62, .5); background: rgba(48, 38, 18, .85); color: #FFE6BE; }
.vv-flash .vv-notif-x { position: absolute; right: 8px; top: 8px; }
.vv-flash.is-out { animation: vvNotifOut .22s ease-in forwards; }

/* In-app confirm, replacing the browser dialog. */
.vv-modal {
    position: fixed; inset: 0; z-index: 3100;
    display: grid; place-items: center;
    padding: 20px;
    background: rgba(3, 8, 15, .66);
    backdrop-filter: blur(6px);
}
.vv-modal[hidden] { display: none; }
.vv-modal-box {
    width: min(430px, 100%);
    background: #0C1A2A;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .55);
    color: #EAF3FF;
}
.vv-modal-box h3 { margin: 0 0 8px; font-size: 16px; }
.vv-modal-box p { margin: 0 0 18px; font-size: 13.5px; line-height: 1.5; color: #AFC4D8; }
.vv-modal-acts { display: flex; justify-content: flex-end; gap: 10px; }
.vv-modal-acts button {
    min-height: 40px; padding: 0 16px;
    border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    color: #DCEBFF;
}
.vv-modal-acts .vv-danger { border-color: rgba(224, 86, 86, .6); background: rgba(224, 86, 86, .18); color: #FFE1E4; }
.vv-modal-acts .vv-danger:hover { background: rgba(224, 86, 86, .3); }
.vv-modal-acts .vv-ok { border-color: rgba(76, 155, 255, .6); background: #2F7BE0; color: #fff; }

@media (max-width: 640px) {
    .vv-notif-stack { right: 12px; left: 12px; bottom: 12px; width: auto; }
}
