﻿.notification {
    position: fixed;
    top: 10px; /* Distanza dal bordo superiore */
    right: 20px; /* Distanza dal bordo destro */
    padding: 25px 20px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out; /* Aggiunta transizione per il transform */
    z-index: 1000;
    cursor: pointer;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transform: translateX(150%); /* Inizialmente nascosta a destra */
}

.notification.show {
    opacity: 1;
    transform: translateX(0); /* Mostra la notifica */
}

.notification.success { background-color: #4CAF50; color: white; }
.notification.error { background-color: #f44336; color: white; }
.notification.warning { background-color: #ff9800; color: white;}
.notification.info { background-color: #2196F3; color: white; }

.closebtn {
    margin-left: 15px;
    color: white;
    font-weight: bold;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.closebtn:hover {
    color: black;
}