/* Современная система модальных окон для alert и confirm */

.modern-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modern-alert-overlay.active {
    opacity: 1;
}

.modern-alert-modal {
    max-width: 450px;
    width: 100%;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.98) 0%, rgba(25, 25, 40, 0.98) 100%);
    border-radius: 24px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    animation: slideUpModal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-alert-overlay.active .modern-alert-modal {
    transform: translateY(0) scale(1);
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modern-alert-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
}

.modern-alert-icon-wrapper svg {
    width: 40px;
    height: 40px;
    z-index: 1;
    position: relative;
}

.modern-alert-icon-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
    border: 2px solid rgba(59, 130, 246, 0.4);
    color: #3b82f6;
}

.modern-alert-icon-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(22, 163, 74, 0.2) 100%);
    border: 2px solid rgba(34, 197, 94, 0.4);
    color: #22c55e;
}

.modern-alert-icon-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
    border: 2px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.modern-alert-icon-warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
    border: 2px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.modern-alert-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.modern-alert-content {
    padding: 0 32px 32px;
    text-align: center;
}

.modern-alert-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-alert-message {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.modern-alert-actions {
    display: flex;
    gap: 12px;
    padding: 0 32px 32px;
    justify-content: center;
}

.modern-alert-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-alert-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.modern-alert-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #5568d3 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.modern-alert-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.modern-alert-btn-confirm {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.modern-alert-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
}

.modern-alert-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.modern-alert-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .modern-alert-modal {
        max-width: 90%;
        border-radius: 20px;
    }
    
    .modern-alert-content {
        padding: 0 24px 24px;
    }
    
    .modern-alert-title {
        font-size: 20px;
    }
    
    .modern-alert-message {
        font-size: 14px;
    }
    
    .modern-alert-actions {
        flex-direction: column;
        padding: 0 24px 24px;
    }
    
    .modern-alert-btn {
        width: 100%;
    }
}

