/* Componente de Erro Elegante */
.validation-error-card {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: 90%;
    background: #fff;
    border: 2px solid #dc3545;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(220, 53, 69, 0.3);
    z-index: 9999;
    animation: errorSlideIn 0.3s ease-out;
}

.error-content {
    padding: 20px;
}

.error-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #dc3545;
}

.error-header i {
    font-size: 24px;
    margin-right: 12px;
}

.error-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #721c24;
    line-height: 1.6;
    font-size: 14px;
}

.error-message strong {
    color: #dc3545;
    font-weight: 600;
}

.error-close-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.error-close-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.error-close-btn i {
    font-size: 12px;
}

/* Animação de entrada */
@keyframes errorSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .validation-error-card {
        top: 10px;
        width: 95%;
        max-width: none;
    }
    
    .error-content {
        padding: 15px;
    }
    
    .error-header h4 {
        font-size: 16px;
    }
    
    .error-message {
        font-size: 13px;
        padding: 12px;
    }
}