/* ===================================================
   Warning Overlay – Unsaved Progress
   DNA-180: Warns users before leaving the composition flow.
   =================================================== */

#warning-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

    #warning-overlay.wo-visible {
        opacity: 1;
        pointer-events: all;
    }

/* Dark translucent backdrop */
.wo-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 28, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Card container */
.wo-card {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    max-width: 440px;
    width: 90%;
    padding: 36px 32px 28px;
    text-align: center;
    animation: wo-slide-up 0.3s ease;
}

@keyframes wo-slide-up {
    from {
        transform: translateY(24px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Warning icon */
.wo-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: #FFF3E0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .wo-icon i {
        font-size: 26px;
        color: #EF5F54;
    }

/* Title */
.wo-title {
    font-size: 20px;
    font-weight: 700;
    color: #1A5F78;
    margin: 0 0 8px;
}

/* Message body */
.wo-message {
    font-size: 14px;
    color: #555;
    line-height: 1.55;
    margin: 0 0 24px;
}

/* Button row */
.wo-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Stay button (primary) */
.wo-btn-stay {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: #617DC6;
    color: #fff;
    transition: background 0.2s ease;
}

    .wo-btn-stay:hover {
        background: #4f6bb5;
    }

/* Leave button (secondary/danger) */
.wo-btn-leave {
    flex: 1;
    padding: 10px 20px;
    border: 2px solid #EF5F54;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: #EF5F54;
    transition: all 0.2s ease;
}

    .wo-btn-leave:hover {
        background: #EF5F54;
        color: #fff;
    }
