/* Invece di far occupare spazio al div, lo rendiamo fluttuante */
#error-injection-point {
    position: fixed;
    top: 20px; /* Appare in alto, o metti 'top: 50%' per il centro */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 400px;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #ffcdd2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* Effetto ombra per farlo sembrare un popup */
    text-align: center;
    font-weight: 500;
    animation: slideDown 0.4s ease-out forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

#error-injection-point {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.error-message {
    background: #ff4d4d;
    color: white;
    padding: 15px 25px;
    border-radius: 50px; /* Forma a pillola molto moderna */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-weight: 500;
}