/* PolyVault Emergency Stop UI */

/* Banner — fixed at very top, full width */
#emergency-banner {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 99999;
    background: linear-gradient(90deg, #cc0000, #990000);
    color: #fff;
    padding: 12px 24px;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 24px rgba(255, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    gap: 16px;
    animation: bannerGlow 2s ease-in-out infinite;
}

#emergency-banner.active {
    display: flex;
}

#emergency-banner .resume-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 5px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

#emergency-banner .resume-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes bannerGlow {
    0%, 100% { box-shadow: 0 3px 24px rgba(255, 0, 0, 0.6); }
    50%       { box-shadow: 0 3px 48px rgba(255, 0, 0, 1); }
}

/* Offset page content when banner is visible */
body.emergency-active {
    padding-top: 48px !important;
}

/* Kill switch button — in nav */
#kill-switch-btn {
    background: #cc0000;
    color: #fff;
    border: none;
    padding: 7px 15px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.4px;
    transition: all 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}

#kill-switch-btn:hover {
    background: #ff1a1a;
    box-shadow: 0 0 14px rgba(255, 26, 26, 0.6);
    transform: translateY(-1px);
}

#kill-switch-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#kill-switch-btn.emergency-active-btn {
    background: transparent;
    color: #ff4444;
    border: 1px solid #ff4444;
    animation: btnBlink 1.5s ease-in-out infinite;
}

@keyframes btnBlink {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(255, 68, 68, 0.4); }
    50%       { opacity: 0.7; box-shadow: 0 0 14px rgba(255, 68, 68, 0.8); }
}
