/* notifications.css */

.notification-container {
    position: fixed;
    z-index: 1050;
    min-width: 300px;
    max-width: 600px;
    padding: 15px;
    border-radius: 8px;
    display: none;
    align-items: center;
    transition: all 0.3s ease;
}

.notification-top {
    top: 10vh;
    left: 50%;
    transform: translateX(-50%);
}

.notification-bottom {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.notification-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notification-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.notification-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.notification-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.notification-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0 5px;
    font-size: 1.25rem;
}

.notification i {
    margin-right: 10px;
    font-size: 1.2em;
}

.notification .message {
    flex-grow: 1;
    margin-right: 10px;
}

/* Animazioni */
@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.notification-container.show {
    animation: slideIn 0.3s forwards;
}

.notification-container.hide {
    animation: slideOut 0.3s forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-container {
        width: 90%;
        min-width: auto;
        margin: 0 20px;
    }
}

/* Accessibility */
.notification-container[role="alert"] {
    outline: none;
}