/* ===============================================
   Modal System - SAGE-style confirmations
   =============================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.2s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    background: var(--bg-panel);
    border-radius: 7px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: modalSlideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    transform-origin: top center;
}

@keyframes modalSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-primary);
    stroke-width: 2;
}

.modal-icon.warning svg {
    stroke: #ff9500;
}

.modal-icon.error svg {
    stroke: #ff006e;
}

.modal-title {
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    text-transform: uppercase;
    flex: 1;
}

.modal-body {
    padding: 20px;
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.1em;
}

.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.modal-btn {
    height: 32px;
    padding: 0 16px;
    font-family: 'Orbitron', monospace;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.8);
}

.modal-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.modal-btn.primary {
    background: rgba(0, 217, 255, 0.12);
    color: var(--accent-primary);
}

.modal-btn.primary:hover {
    background: rgba(0, 217, 255, 0.2);
}

.modal-btn.danger {
    background: rgba(255, 0, 110, 0.12);
    color: var(--accent-tertiary);
}

.modal-btn.danger:hover {
    background: rgba(255, 0, 110, 0.2);
}

