/**
 * Sistema Notifiche Toast
 */

.at-notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.at-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.at-notification-show {
    opacity: 1;
    transform: translateX(0);
}

.at-notification-hide {
    opacity: 0;
    transform: translateX(400px);
}

.at-notification-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.at-notification-content {
    flex: 1;
}

.at-notification-message {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.at-notification-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.at-notification-close:hover {
    color: #333;
}

/* Tipi */
.at-notification-success {
    border-left: 4px solid #4caf50;
}

.at-notification-success .at-notification-icon {
    color: #4caf50;
}

.at-notification-error {
    border-left: 4px solid #f44336;
}

.at-notification-error .at-notification-icon {
    color: #f44336;
}

.at-notification-warning {
    border-left: 4px solid #ff9800;
}

.at-notification-warning .at-notification-icon {
    color: #ff9800;
}

.at-notification-info {
    border-left: 4px solid #2196f3;
}

.at-notification-info .at-notification-icon {
    color: #2196f3;
}

/* Mobile */
@media (max-width: 576px) {
    .at-notifications {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .at-notification {
        min-width: auto;
        max-width: none;
    }
}
