/* Стили для анимированной ошибки */
.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-modal[style*="display: flex"] {
    opacity: 1;
}

.error-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.7) translateY(-50px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    position: relative;
    overflow: hidden;
}

.error-modal[style*="display: flex"] .error-content {
    transform: scale(1) translateY(0);
}

.error-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    /* background: darkorange; */
    border-radius: 4px 4px 0 0;
}

.error-icon {
    width: 64px;
    height: 64px;
    /* background: #dc3545; */
    background: #EB6142;
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
    display: grid;
    place-items: center;
}

.error-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.error-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: darkorange;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    animation: pulse-ring 2s infinite;
}

.cross-line {
    position: absolute;
    width: 24px;
    height: 4px;
    background: white;
    z-index: 1;
    border: 1px solid black;
}

.cross-line-1 {
    top: 31px;
    left: 20px;
    transform: rotate(45deg);
}

.cross-line-2 {
    top: 31px;
    left: 20px;
    transform: rotate(-45deg);
}

.error-title {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.error-message {
    color: #718096;
    margin-bottom: 25px;
    line-height: 1.5;
    font-size: 16px;
}

.error-button {
    background: white;
    color: #6c757d;
    border: 1px solid #dee2e6;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.error-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
}

.error-button:active {
    transform: translateY(0);
}

/* Стили для кнопки подтверждения (красная) */
.error-button.confirm {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
}

.error-button.confirm:hover {
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-content.shake {
    animation: shake 0.6s ease-in-out;
}

/* Адаптивность */
@media (max-width: 768px) {
    .error-content {
        padding: 20px;
        margin: 20px;
    }
    
    .error-icon {
        width: 50px;
        height: 50px;
    }
    
    .cross-line {
        width: 20px;
        height: 2px;
    }
    
    .cross-line-1 {
        top: 25px;
        left: 15px;
    }
    
    .cross-line-2 {
        top: 25px;
        left: 15px;
    }
    
    .error-title {
        font-size: 20px;
    }
    
    .error-message {
        font-size: 14px;
    }
} 